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作 類別,並使用 來建立類別的關聯MarshalByRefObjectProxyAttribute,以啟用自定義啟用。 啟用類別時,Common Language Runtime 會呼叫 Proxy 的 CreateInstance 方法來啟動類別。

方法

CreateInstance(Type)

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

適用於