TrackingServices.RegisteredHandlers 属性

定义

获取当前 TrackingServices 中目前已注册到 AppDomain 的跟踪处理程序的数组。

public:
 static property cli::array <System::Runtime::Remoting::Services::ITrackingHandler ^> ^ RegisteredHandlers { cli::array <System::Runtime::Remoting::Services::ITrackingHandler ^> ^ get(); };
public static System.Runtime.Remoting.Services.ITrackingHandler[] RegisteredHandlers { get; }
public static System.Runtime.Remoting.Services.ITrackingHandler[] RegisteredHandlers { [System.Security.SecurityCritical] get; }
static member RegisteredHandlers : System.Runtime.Remoting.Services.ITrackingHandler[]
[<get: System.Security.SecurityCritical>]
static member RegisteredHandlers : System.Runtime.Remoting.Services.ITrackingHandler[]
Public Shared ReadOnly Property RegisteredHandlers As ITrackingHandler()

属性值

当前 TrackingServices 中目前已注册到 AppDomain 的跟踪处理程序的数组。

属性

示例

下面的代码示例演示如何使用此方法。 此代码示例是为 TrackingServices 类提供的一个更大示例的一部分。

// Get the number of currently registered handlers.
Console.WriteLine("Registered tracking handlers: " + 
    TrackingServices.RegisteredHandlers.Length);

适用于