System.Runtime.Remoting.Proxies.RealProxy.SetCOMIUnknown Method

Stores an unmanaged proxy of the object that is represented by the current instance.

Syntax

public virtual void SetCOMIUnknown (IntPtr i)

Parameters

i
A pointer to the IUnknown interface for the object that is represented by the current proxy instance.

Remarks

When an unmanaged proxy attempts to communicate with the common language runtime through COM, the runtime resolves the remote object that is represented by the unmanaged proxy. If the remote object is managed and also resides in a common language environment, then instead of communicating with it through distributed COM, the object is sent to the current process.

If the remote object is not derived from MarshalByRefObject, then it is serialized and copied to the current location. If it is derived from MarshalByRefObject, then it returns a transparent proxy, and the remoting infrastructure caches the unmanaged proxy (the IUnknown interface) in the transparent proxy for future use.

Requirements

Namespace: System.Runtime.Remoting.Proxies
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0