Partager via


ITrackingHandler.UnmarshaledObject(Object, ObjRef) Méthode

Définition

Avertit l'instance en cours qu'un objet a été démarshalé.

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)

Paramètres

obj
Object

Objet qui a été démarshalé.

or
ObjRef

ObjRef représentant l'objet spécifié.

Attributs

Exemples

L’exemple de code suivant montre comment implémenter cette méthode. Cet exemple de code fait partie d’un exemple plus large fourni pour l’interface 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());
}

S’applique à