ITrackingHandler.UnmarshaledObject(Object, ObjRef) 方法

定義

通知當前實例物件已被解碼。

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)

參數

obj
Object

那個未控的物件。

or
ObjRef

ObjRef 代表指定的物件。

屬性

範例

以下程式碼範例說明如何實作此方法。 此程式碼範例是介面中提供 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());
}

適用於