ITrackingHandler.UnmarshaledObject(Object, ObjRef) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通知当前实例已将对象取消封送。
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
已取消封送的对象。
- 属性
示例
下面的代码示例演示如何实现此方法。 此代码示例是为 接口提供的更大示例的 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());
}
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈