IObjectHandle 介面

定義

定義用以從間接取值 (Indirection) 來為傳值封送處理物件解開包裝的介面。

public interface class IObjectHandle
[System.Runtime.InteropServices.Guid("C460E2B4-E199-412a-8456-84DC3E4838C3")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IObjectHandle
[System.Runtime.InteropServices.Guid("C460E2B4-E199-412a-8456-84DC3E4838C3")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.ComVisible(true)]
public interface IObjectHandle
[<System.Runtime.InteropServices.Guid("C460E2B4-E199-412a-8456-84DC3E4838C3")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IObjectHandle = interface
[<System.Runtime.InteropServices.Guid("C460E2B4-E199-412a-8456-84DC3E4838C3")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IObjectHandle = interface
Public Interface IObjectHandle
衍生
屬性

備註

可透過間接取值傳回封送處理對象,允許呼叫端控制物件載入其網域的時機。 呼叫端可以透過這個介面從間接取值解除包裝物件。

實作 介面的IObjectHandle類別可用來在多個應用程式域之間傳遞物件 (包裝狀態) ,而不需在移動的每個AppDomainIObjectHandle應用程式中載入包裝物件的元數據。 因此,當遠端物件的載入其網域時Type,類別IObjectHandle會提供呼叫端控件。

方法

Unwrap()

解開物件包裝。

適用於