WorkflowServiceHost 构造函数

定义

初始化 WorkflowServiceHost 类的新实例。

重载

WorkflowServiceHost()

初始化 WorkflowServiceHost 类的新实例。

WorkflowServiceHost(Activity, Uri[])

使用指定的活动和基址初始化 WorkflowServiceHost 类的新实例。

WorkflowServiceHost(Object, Uri[])

使用指定的服务对象和基址初始化 WorkflowServiceHost 类的新实例。

WorkflowServiceHost(WorkflowService, Uri[])

使用指定的服务定义和基址集合初始化 WorkflowServiceHost 类的新实例。

WorkflowServiceHost()

初始化 WorkflowServiceHost 类的新实例。

protected:
 WorkflowServiceHost();
protected WorkflowServiceHost ();
Protected Sub New ()

适用于

WorkflowServiceHost(Activity, Uri[])

使用指定的活动和基址初始化 WorkflowServiceHost 类的新实例。

public:
 WorkflowServiceHost(System::Activities::Activity ^ activity, ... cli::array <Uri ^> ^ baseAddresses);
public WorkflowServiceHost (System.Activities.Activity activity, params Uri[] baseAddresses);
new System.ServiceModel.Activities.WorkflowServiceHost : System.Activities.Activity * Uri[] -> System.ServiceModel.Activities.WorkflowServiceHost
Public Sub New (activity As Activity, ParamArray baseAddresses As Uri())

参数

activity
Activity

工作流服务的根活动。

baseAddresses
Uri[]

工作流服务的基址的数组。

示例

下面的示例演示如何使用此构造函数。

适用于

WorkflowServiceHost(Object, Uri[])

使用指定的服务对象和基址初始化 WorkflowServiceHost 类的新实例。

public:
 WorkflowServiceHost(System::Object ^ serviceImplementation, ... cli::array <Uri ^> ^ baseAddresses);
public WorkflowServiceHost (object serviceImplementation, params Uri[] baseAddresses);
new System.ServiceModel.Activities.WorkflowServiceHost : obj * Uri[] -> System.ServiceModel.Activities.WorkflowServiceHost
Public Sub New (serviceImplementation As Object, ParamArray baseAddresses As Uri())

参数

serviceImplementation
Object

要承载的工作流服务的根活动。

baseAddresses
Uri[]

工作流服务的基址的数组。

适用于

WorkflowServiceHost(WorkflowService, Uri[])

使用指定的服务定义和基址集合初始化 WorkflowServiceHost 类的新实例。

public:
 WorkflowServiceHost(System::ServiceModel::Activities::WorkflowService ^ serviceDefinition, ... cli::array <Uri ^> ^ baseAddresses);
public WorkflowServiceHost (System.ServiceModel.Activities.WorkflowService serviceDefinition, params Uri[] baseAddresses);
new System.ServiceModel.Activities.WorkflowServiceHost : System.ServiceModel.Activities.WorkflowService * Uri[] -> System.ServiceModel.Activities.WorkflowServiceHost
Public Sub New (serviceDefinition As WorkflowService, ParamArray baseAddresses As Uri())

参数

serviceDefinition
WorkflowService

要承载的工作流服务。

baseAddresses
Uri[]

所承载的工作流服务的基址数组。

适用于