ApplicationActivator.CreateInstanceHelper(AppDomainSetup) 方法

定義

使用指定 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 是應用程式執行回傳值的包裝器。 必須展開回傳值才能存取真實物件。

例外狀況

ActivationArgumentsadSetup 屬性是 null

應用程式實例未能執行,是因為目前應用程式域的政策設定未提供該應用程式執行的權限。

備註

此方法旨在用於基於清單的應用程式啟動。

適用於