共用方式為


WorkflowServiceHostFactory.CreateWorkflowServiceHost 方法

定義

建立 WorkflowServiceHost 類別的新執行個體。

多載

CreateWorkflowServiceHost(Activity, Uri[])

使用指定的 WorkflowServiceHost 和基底位址,建立 Activity 類別的新執行個體。

CreateWorkflowServiceHost(WorkflowService, Uri[])

使用指定的 WorkflowServiceHost 和基底位址,建立 WorkflowService 類別的新執行個體。

CreateWorkflowServiceHost(Activity, Uri[])

使用指定的 WorkflowServiceHost 和基底位址,建立 Activity 類別的新執行個體。

protected:
 virtual System::ServiceModel::Activities::WorkflowServiceHost ^ CreateWorkflowServiceHost(System::Activities::Activity ^ activity, cli::array <Uri ^> ^ baseAddresses);
protected virtual System.ServiceModel.Activities.WorkflowServiceHost CreateWorkflowServiceHost (System.Activities.Activity activity, Uri[] baseAddresses);
abstract member CreateWorkflowServiceHost : System.Activities.Activity * Uri[] -> System.ServiceModel.Activities.WorkflowServiceHost
override this.CreateWorkflowServiceHost : System.Activities.Activity * Uri[] -> System.ServiceModel.Activities.WorkflowServiceHost
Protected Overridable Function CreateWorkflowServiceHost (activity As Activity, baseAddresses As Uri()) As WorkflowServiceHost

參數

activity
Activity

工作流程定義。

baseAddresses
Uri[]

可做為其他位址參考點的位址清單。

傳回

工作流程服務主機執行個體。

適用於

CreateWorkflowServiceHost(WorkflowService, Uri[])

使用指定的 WorkflowServiceHost 和基底位址,建立 WorkflowService 類別的新執行個體。

protected:
 virtual System::ServiceModel::Activities::WorkflowServiceHost ^ CreateWorkflowServiceHost(System::ServiceModel::Activities::WorkflowService ^ service, cli::array <Uri ^> ^ baseAddresses);
protected virtual System.ServiceModel.Activities.WorkflowServiceHost CreateWorkflowServiceHost (System.ServiceModel.Activities.WorkflowService service, Uri[] baseAddresses);
abstract member CreateWorkflowServiceHost : System.ServiceModel.Activities.WorkflowService * Uri[] -> System.ServiceModel.Activities.WorkflowServiceHost
override this.CreateWorkflowServiceHost : System.ServiceModel.Activities.WorkflowService * Uri[] -> System.ServiceModel.Activities.WorkflowServiceHost
Protected Overridable Function CreateWorkflowServiceHost (service As WorkflowService, baseAddresses As Uri()) As WorkflowServiceHost

參數

service
WorkflowService

成為主機的工作流程服務。

baseAddresses
Uri[]

可做為其他位址參考點的位址清單。

傳回

工作流程服務主機執行個體。

適用於