Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ICustomFactory Interface

 

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

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

<ComVisibleAttribute(True)>
Public Interface ICustomFactory

NameDescription
System_CAPS_pubmethodCreateInstance(Type)

Creates a new instance of the specified type.

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft