Editare

Partajați prin


ApplicationActivator.CreateInstance Method

Definition

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

Overloads

CreateInstance(ActivationContext)

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

CreateInstance(ActivationContext, String[])

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

CreateInstance(ActivationContext)

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

public:
 virtual System::Runtime::Remoting::ObjectHandle ^ CreateInstance(ActivationContext ^ activationContext);
public virtual System.Runtime.Remoting.ObjectHandle CreateInstance (ActivationContext activationContext);
abstract member CreateInstance : ActivationContext -> System.Runtime.Remoting.ObjectHandle
override this.CreateInstance : ActivationContext -> System.Runtime.Remoting.ObjectHandle
Public Overridable Function CreateInstance (activationContext As ActivationContext) As ObjectHandle

Parameters

activationContext
ActivationContext

An ActivationContext that identifies the application to activate.

Returns

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.

Exceptions

activationContext is null.

Remarks

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

Applies to

CreateInstance(ActivationContext, String[])

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

public:
 virtual System::Runtime::Remoting::ObjectHandle ^ CreateInstance(ActivationContext ^ activationContext, cli::array <System::String ^> ^ activationCustomData);
public virtual System.Runtime.Remoting.ObjectHandle CreateInstance (ActivationContext activationContext, string[] activationCustomData);
abstract member CreateInstance : ActivationContext * string[] -> System.Runtime.Remoting.ObjectHandle
override this.CreateInstance : ActivationContext * string[] -> System.Runtime.Remoting.ObjectHandle
Public Overridable Function CreateInstance (activationContext As ActivationContext, activationCustomData As String()) As ObjectHandle

Parameters

activationContext
ActivationContext

An ActivationContext that identifies the application to activate.

activationCustomData
String[]

Custom activation data.

Returns

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.

Exceptions

activationContext is null.

Remarks

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.

Applies to