AppDomainSetup 建構函式

定義

初始化 AppDomainSetup 類別的新執行個體。Initializes a new instance of the AppDomainSetup class.

多載

AppDomainSetup()

初始化 AppDomainSetup 類別的新執行個體。Initializes a new instance of the AppDomainSetup class.

AppDomainSetup(ActivationContext)

使用指定的啟用內容,初始化 AppDomainSetup 類別的新執行個體,以用於應用程式定義域的資訊清單型啟用。Initializes a new instance of the AppDomainSetup class with the specified activation context to use for manifest-based activation of an application domain.

AppDomainSetup(ActivationArguments)

使用應用程式定義域的資訊清單型啟用所需的指定啟用引數,初始化 AppDomainSetup 類別的新執行個體。Initializes a new instance of the AppDomainSetup class with the specified activation arguments required for manifest-based activation of an application domain.

AppDomainSetup()

初始化 AppDomainSetup 類別的新執行個體。Initializes a new instance of the AppDomainSetup class.

public:
 AppDomainSetup();
public AppDomainSetup ();
Public Sub New ()

適用於

AppDomainSetup(ActivationContext)

使用指定的啟用內容,初始化 AppDomainSetup 類別的新執行個體,以用於應用程式定義域的資訊清單型啟用。Initializes a new instance of the AppDomainSetup class with the specified activation context to use for manifest-based activation of an application domain.

public:
 AppDomainSetup(ActivationContext ^ activationContext);
public AppDomainSetup (ActivationContext activationContext);
new AppDomainSetup : ActivationContext -> AppDomainSetup
Public Sub New (activationContext As ActivationContext)

參數

activationContext
ActivationContext

用於應用程式定義域的啟動內容。The activation context to be used for an application domain.

例外狀況

activationContextnullactivationContext is null.

備註

ActivationContext為指定的物件 activationContext 會用來產生 ActivationArguments 物件,其中包含啟用新的應用程式域所需的資訊。The ActivationContext object specified for activationContext is used to generate an ActivationArguments object containing information required to activate a new application domain. ActivationArguments 可以使用屬性來存取這個物件 ActivationArgumentsThis ActivationArguments object can be accessed by using the ActivationArguments property.

另請參閱

適用於

AppDomainSetup(ActivationArguments)

使用應用程式定義域的資訊清單型啟用所需的指定啟用引數,初始化 AppDomainSetup 類別的新執行個體。Initializes a new instance of the AppDomainSetup class with the specified activation arguments required for manifest-based activation of an application domain.

public:
 AppDomainSetup(System::Runtime::Hosting::ActivationArguments ^ activationArguments);
public AppDomainSetup (System.Runtime.Hosting.ActivationArguments activationArguments);
new AppDomainSetup : System.Runtime.Hosting.ActivationArguments -> AppDomainSetup
Public Sub New (activationArguments As ActivationArguments)

參數

activationArguments
ActivationArguments

物件,可指定新應用程式定義域之資訊清單為主的啟動作業所需的資訊。An object that specifies information required for the manifest-based activation of a new application domain.

例外狀況

activationArgumentsnullactivationArguments is null.

備註

activationArguments 可以使用屬性來存取指定的物件 ActivationArgumentsThe object specified for activationArguments can be accessed by using the ActivationArguments property.

適用於