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


Type: System.ActivationContext

An ActivationContext that identifies the application to activate.

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

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