Udostępnij przez


ITrackingHandler.UnmarshaledObject(Object, ObjRef) Metoda

Definicja

Powiadamia bieżące wystąpienie o tym, że obiekt został unmarshaled.

public:
 void UnmarshaledObject(System::Object ^ obj, System::Runtime::Remoting::ObjRef ^ or);
public void UnmarshaledObject (object obj, System.Runtime.Remoting.ObjRef or);
[System.Security.SecurityCritical]
public void UnmarshaledObject (object obj, System.Runtime.Remoting.ObjRef or);
abstract member UnmarshaledObject : obj * System.Runtime.Remoting.ObjRef -> unit
[<System.Security.SecurityCritical>]
abstract member UnmarshaledObject : obj * System.Runtime.Remoting.ObjRef -> unit
Public Sub UnmarshaledObject (obj As Object, or As ObjRef)

Parametry

obj
Object

Obiekt unmarshaled.

or
ObjRef

Obiekt ObjRef reprezentujący określony obiekt.

Atrybuty

Przykłady

Poniższy przykład kodu pokazuje, jak zaimplementować tę metodę. Ten przykład kodu jest częścią większego przykładu udostępnionego dla interfejsu ITrackingHandler .

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

Dotyczy