Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IObjectHandle Interface

Defines the interface for unwrapping marshal-by-value objects from indirection.

Namespace: System.Runtime.Remoting
Assembly: mscorlib (in mscorlib.dll)

[ComVisibleAttribute(true)] 
[GuidAttribute("C460E2B4-E199-412a-8456-84DC3E4838C3")] 
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)] 
public interface IObjectHandle
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute GuidAttribute("C460E2B4-E199-412a-8456-84DC3E4838C3") */ 
/** @attribute InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown) */ 
public interface IObjectHandle
ComVisibleAttribute(true) 
GuidAttribute("C460E2B4-E199-412a-8456-84DC3E4838C3") 
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown) 
public interface IObjectHandle

Marshal-by-value objects can be returned through an indirection, allowing the caller to control when the object is loaded into their domain. The caller can unwrap the object from the indirection through this interface.

The class implementing the IObjectHandle interface can be used to pass an object (in a wrapped state) between multiple application domains without loading the metadata for the wrapped object in each AppDomain through which the IObjectHandle travels. Thus, the IObjectHandle class gives the caller control of when the Type of the remote object is loaded into their domain.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.