Edit

Share via


ITrackingHandler.DisconnectedObject(Object) Method

Definition

Notifies the current instance that an object has been disconnected from its proxy.

public:
 void DisconnectedObject(System::Object ^ obj);
public void DisconnectedObject (object obj);
[System.Security.SecurityCritical]
public void DisconnectedObject (object obj);
abstract member DisconnectedObject : obj -> unit
[<System.Security.SecurityCritical>]
abstract member DisconnectedObject : obj -> unit
Public Sub DisconnectedObject (obj As Object)

Parameters

obj
Object

The disconnected object.

Attributes

Examples

The following code example shows how to implement this method. This code example is part of a larger example that is provided for the ITrackingHandler interface.

// Called when the tracked object is disconnected.
public void DisconnectedObject(Object obj)
{
    Console.WriteLine("Tracking: An instance of {0} was disconnected.", 
        obj.ToString());
}

Applies to