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するプロキシ クラスを指定し、 クラスProxyAttributeMarshalByRefObject を関連付けます。 クラスがアクティブ化されると、共通言語ランタイムによってプロキシの CreateInstance メソッドが呼び出され、クラスがアクティブになります。

メソッド

CreateInstance(Type)

指定した型の新しいインスタンスを作成します。

適用対象