ApplicationActivator.CreateInstanceHelper Method (AppDomainSetup)


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

Namespace:   System.Runtime.Hosting
Assembly:  mscorlib (in mscorlib.dll)

protected static ObjectHandle CreateInstanceHelper(
	AppDomainSetup adSetup


Type: System.AppDomainSetup

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

Return Value

Type: System.Runtime.Remoting.ObjectHandle

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.

Exception Condition

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.

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

.NET Framework
Available since 2.0
Return to top