Edit

Share via


ApplicationActivator.CreateInstanceHelper(AppDomainSetup) Method

Definition

Creates an instance of an application using the specified AppDomainSetup object.

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

Parameters

adSetup
AppDomainSetup

An AppDomainSetup object whose ActivationArguments property identifies the application to activate.

Returns

An ObjectHandle that is a wrapper for the return value of the application execution. The return value must be unwrapped to access the real object.

Exceptions

The ActivationArguments property of adSetup is null.

The application instance failed to execute because the policy settings on the current application domain do not provide permission for this application to run.

Remarks

This method is intended for the manifest-based activation of applications.

Applies to