Condividi tramite


ITrackingHandler.UnmarshaledObject(Object, ObjRef) Metodo

Definizione

Notifica all'istanza corrente che è stato effettuato l'unmarshalling di un oggetto.

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)

Parametri

obj
Object

Oggetto di cui è stato effettuato l'unmarshalling.

or
ObjRef

ObjRef che rappresenta l'oggetto specificato.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come implementare questo metodo. Questo esempio di codice fa parte di un esempio più ampio fornito per l'interfaccia 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());
}

Si applica a