Export (0) Print
Expand All

ApplicationActivator.CreateInstanceHelper Method

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
)
protected static ObjectHandle CreateInstanceHelper (
	AppDomainSetup adSetup
)
protected static function CreateInstanceHelper (
	adSetup : AppDomainSetup
) : ObjectHandle
Not applicable.

Parameters

adSetup

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

Return Value

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 typeCondition

ArgumentException

The ActivationArguments property of adSetup is a null reference (Nothing in Visual Basic).

PolicyException

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft