ApplicationActivator.CreateInstance 方法
定义
使用标识应用程序的激活上下文创建要激活的应用程序的实例。Creates an instance of the application to be activated, using an activation context that identifies the application.
重载
| 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
参数
- activationContext
- ActivationContext
标识要激活的应用程序的 ActivationContext。An ActivationContext that identifies the application to activate.
返回
一个 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.
例外
activationContext 为 null。activationContext is null.
注解
此方法用于基于清单的应用程序激活。This method is intended for the manifest-based activation of applications.
适用于
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
参数
- activationContext
- ActivationContext
标识要激活的应用程序的 ActivationContext。An ActivationContext that identifies the application to activate.
- activationCustomData
- String[]
自定义激活数据。Custom activation data.
返回
一个 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.
例外
activationContext 为 null。activationContext is null.
注解
此方法用于基于清单的应用程序激活。This method is intended for the manifest-based activation of applications. 激活数据包含 URL 的查询字符串部分等信息。The activation data consists of information such as the query string portion of a URL.