Enables users to write activation code for managed objects that extend MarshalByRefObject.
public interface class ICustomFactory
public interface ICustomFactory
[System.Runtime.InteropServices.ComVisible(true)] public interface ICustomFactory
type ICustomFactory = interface
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.
Creates a new instance of the specified type.