Export (0) Print
Expand All

ObjectHandle.Unwrap Method

Returns the wrapped object.

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

abstract Unwrap : unit -> Object  
override Unwrap : unit -> Object

Return Value

Type: System.Object
The wrapped object.

Implements

IObjectHandle.Unwrap()

Notes to Callers

A ObjectHandle is a remoted MarshalByRefObject that is tracked by the remoting lifetime service. A call to the current method can fail if the lifetime lease on the ObjectHandle expires.

The following code example demonstrates how to activate an object in another AppDomain, retrieve a proxy to it with the Unwrap method, and use the proxy to access the remote object.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft