System.Runtime.Remoting.Services.TrackingServices Class

Assembly: Mscorlib.dll
Namespace: System.Runtime.Remoting.Services
Summary
Provides a way to register, unregister, and obtain a list of tracking handlers.
C# Syntax:
public class TrackingServices
Remarks
Tracking handlers are objects that implement the ITrackingHandler interface, indicating that they must be notified whenever the remoting infrastructure marshals, unmarshals, or disconnects an object or proxy. Every object registered with TrackingServices is called by remoting when an object or proxy in the current AppDomain is marshaled, unmarshaled, or disconnected.

Note All methods in the TrackingServices class are static, and operate on the tracking handlers in the current AppDomain.
See also:
System.Runtime.Remoting.Services Namespace | ITrackingHandler

System.Runtime.Remoting.Services.TrackingServices Member List:

Public Constructors
ctor #1 Default constructor. This constructor is called by derived class constructors to initialize state in this type.
Public Properties
RegisteredHandlers Read-only

Gets an array of the tracking handlers that are currently registered with TrackingServices in the current AppDomain.
Public Methods
Equals
(inherited from System.Object)
See base class member description: System.Object.Equals

Derived from System.Object, the primary base class for all objects.
GetHashCode
(inherited from System.Object)
See base class member description: System.Object.GetHashCode

Derived from System.Object, the primary base class for all objects.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
RegisterTrackingHandler Registers a new tracking handler with the TrackingServices.
ToString
(inherited from System.Object)
See base class member description: System.Object.ToString

Derived from System.Object, the primary base class for all objects.
UnregisterTrackingHandler Unregisters the specified tracking handler from TrackingServices.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.Runtime.Remoting.Services.TrackingServices Member Details

ctor #1
Summary:
Default constructor. This constructor is called by derived class constructors to initialize state in this type.
C# Syntax:
public TrackingServices();

Return to top


Property: RegisteredHandlers (read-only)
Summary
Gets an array of the tracking handlers that are currently registered with TrackingServices in the current AppDomain.
C# Syntax:
public static ITrackingHandler[] RegisteredHandlers {get;}

Return to top


Method: Equals(
   object obj
)
Inherited
See base class member description: System.Object.Equals
C# Syntax:
public virtual bool Equals(
   object obj
);

For more information on members inherited from System.Object click on the link above.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~TrackingServices();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetHashCode()
Inherited
See base class member description: System.Object.GetHashCode
C# Syntax:
public virtual int GetHashCode();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: RegisterTrackingHandler(
   ITrackingHandler handler
)
Summary
Registers a new tracking handler with the TrackingServices.
C# Syntax:
public static void RegisterTrackingHandler(
   ITrackingHandler handler
);
Parameters:

handler

The tracking handler to register.

Exceptions
Exception Type Condition
ArgumentNullException handler is null.
RemotingException The handler indicated in the handler parameter is already registered with TrackingServices.

Return to top


Method: ToString()
Inherited
See base class member description: System.Object.ToString
C# Syntax:
public virtual string ToString();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: UnregisterTrackingHandler(
   ITrackingHandler handler
)
Summary
Unregisters the specified tracking handler from TrackingServices.
C# Syntax:
public static void UnregisterTrackingHandler(
   ITrackingHandler handler
);
Parameters:

handler

The handler to unregister.

Exceptions
Exception Type Condition
ArgumentNullException handler is null.
RemotingException The handler indicated in the handler parameter is not registered with TrackingServices.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.