ApplicationActivator.CreateInstance Method (ActivationContext)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public virtual ObjectHandle CreateInstance(
	ActivationContext activationContext
)

Parameters

activationContext
Type: System.ActivationContext

An ActivationContext that identifies the application to activate.

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.

.NET Framework
Available since 2.0
Return to top
Show: