This documentation is archived and is not being maintained.

ICustomFactory Interface

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

For a list of all members of this type, see ICustomFactory Members.

[Visual Basic]
Public Interface ICustomFactory
public interface ICustomFactory
public __gc __interface ICustomFactory
public interface ICustomFactory


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


Namespace: System.Runtime.InteropServices

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

ICustomFactory Members | System.Runtime.InteropServices Namespace