ApplicationActivator.CreateInstanceHelper(AppDomainSetup) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定 AppDomainSetup 物件建立應用程式實例。
protected:
static System::Runtime::Remoting::ObjectHandle ^ CreateInstanceHelper(AppDomainSetup ^ adSetup);
protected static System.Runtime.Remoting.ObjectHandle CreateInstanceHelper(AppDomainSetup adSetup);
static member CreateInstanceHelper : AppDomainSetup -> System.Runtime.Remoting.ObjectHandle
Protected Shared Function CreateInstanceHelper (adSetup As AppDomainSetup) As ObjectHandle
參數
- adSetup
- AppDomainSetup
一個 AppDomainSetup 物件的 ActivationArguments 屬性能識別要啟動的應用程式。
傳回
那 ObjectHandle 是應用程式執行回傳值的包裝器。 必須展開回傳值才能存取真實物件。
例外狀況
ActivationArguments 的 adSetup 屬性是 null。
應用程式實例未能執行,是因為目前應用程式域的政策設定未提供該應用程式執行的權限。
備註
此方法旨在用於基於清單的應用程式啟動。