System.Runtime.InteropServices.ICustomFactory

Enables users to write activation code for managed objects that extend MarshalByRefObject.

See Also: ICustomFactory Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public interface ICustomFactory

Remarks

You can enable custom activation by providing a proxy class that implements ICustomFactory and attributing the MarshalByRefObject class with the System.Runtime.Remoting.Proxies.ProxyAttribute. When the class is activated, the proxy's ICustomFactory.CreateInstance(Type) method is called by the common language runtime to activate the class.

Requirements

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