System.Runtime.Remoting.IObjectHandle Interface

Assembly: Mscorlib.dll
Namespace: System.Runtime.Remoting
Summary
Defines the interface for unwrapping marshal by value objects from indirection.
C# Syntax:
public interface IObjectHandle
Remarks
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.

See also:
System.Runtime.Remoting Namespace

System.Runtime.Remoting.IObjectHandle Member List:

Public Methods
Unwrap Unwraps the object.

System.Runtime.Remoting.IObjectHandle Member Details

Method: Unwrap()
Summary
Unwraps the object.
C# Syntax:
object Unwrap();
Return Value:
The unwrapped object.
Remarks
An ObjectHandle is a remoted MarshalByRefObject and is tracked by the remoting lifetime service. A call to the current method might fail if the lifetime lease on the ObjectHandle expires.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.