This documentation is archived and is not being maintained.

ApplicationActivator.CreateInstanceHelper Method

Note: This method is new in the .NET Framework version 2.0.

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

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).

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

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: