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.

Exception Condition
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
Available since 2.0
Return to top
Show: