Wraps marshal-by-value object references, allowing them to be returned through an indirection.
Assembly: mscorlib (in mscorlib.dll)
Initializes an instance of theclass, wrapping the given object o.
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
Initializes the lifetime lease of the wrapped object.(Overrides MarshalByRefObject.InitializeLifetimeService().)
Returns a string that represents the current object.(Inherited from Object.)
Returns the wrapped object.
The following code example shows how to create an object in another AppDomain, and retrieve a proxy to the object from a . In this example, you can assume that the code of the MyType class is compiled into an assembly called "ObjectHandleAssembly".
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.