ICustomFactory 介面

定義

允許使用者撰寫擴充 MarshalByRefObject 的 Managed 物件的啟動程式碼。

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
屬性

備註

您可以藉由提供 Proxy 類別來實 ICustomFactory 作 類別,並使用 來設定 MarshalByRefObject 類別, ProxyAttribute 以啟用自訂啟用。 啟動類別時,Common Language Runtime 會呼叫 Proxy 的 CreateInstance 方法來啟動類別。

方法

CreateInstance(Type)

建立指定類型的新執行個體。

適用於