ICustomFactory ICustomFactory ICustomFactory ICustomFactory Interface

定义

使用户能够为扩展 MarshalByRefObject 的托管对象编写激活代码。Enables users to write activation code for managed objects that extend MarshalByRefObject.

public interface class ICustomFactory
[System.Runtime.InteropServices.ComVisible(true)]
public interface ICustomFactory
type ICustomFactory = interface
Public Interface ICustomFactory
属性

注解

您可以通过提供实现的代理类来启用自定义激活ICustomFactory和特性化MarshalByRefObject类的ProxyAttributeYou can enable custom activation by providing a proxy class that implements ICustomFactory and attributing the MarshalByRefObject class with the ProxyAttribute. 激活类时,此代理的CreateInstance方法由公共语言运行时,若要激活类调用。When the class is activated, the proxy's CreateInstance method is called by the common language runtime to activate the class.

方法

CreateInstance(Type) CreateInstance(Type) CreateInstance(Type) CreateInstance(Type)

创建指定类型的新实例。Creates a new instance of the specified type.

适用于