ICustomFactory 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
允許使用者撰寫擴充 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) |
建立指定類型的新執行個體。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應