ICustomFactory 接口

定义

使用户能够为扩展 MarshalByRefObject 的托管对象编写激活代码。

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

注解

可以通过提供一个代理类来启用自定义激活,该代理类实现ICustomFactory并将 类MarshalByRefObject归于 。ProxyAttribute 激活 类时,公共语言运行时会调用代理的 CreateInstance 方法来激活类。

方法

CreateInstance(Type)

创建指定类型的新实例。

适用于