Export (0) Print
Expand All

ApplicationActivator.CreateInstance Method (ActivationContext, String[])

Creates an instance of the application to be activated, using the specified activation context and custom activation data.

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

public virtual ObjectHandle CreateInstance(
	ActivationContext activationContext,
	string[] activationCustomData
)

Parameters

activationContext
Type: System.ActivationContext

An ActivationContext that identifies the application to activate.

activationCustomData
Type: System.String[]

Custom activation data.

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.

ExceptionCondition
ArgumentNullException

activationContext is null.

This method is intended for the manifest-based activation of applications. The activation data consists of information such as the query string portion of a URL.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft