語言

WorkflowControlClient 建構函式

定義

初始化 WorkflowControlClient 類別的新執行個體。

多載

名稱 Description
WorkflowControlClient()

初始化 WorkflowControlClient 類別的新執行個體。

WorkflowControlClient(WorkflowControlEndpoint)

使用指定的 WorkflowControlClient,初始化 WorkflowControlEndpoint 類別的新實例。

WorkflowControlClient(String)

初始化一個以指定端點配置的新類別實例 WorkflowControlClient 。

WorkflowControlClient(Binding, EndpointAddress)

初始化 WorkflowControlClient 一個以指定綁定方式 WorkflowControlEndpoint, ,

WorkflowControlClient(String, EndpointAddress)

初始化一個以指定端點配置 和 WorkflowControlClient的新類別實例EndpointAddress。

WorkflowControlClient(String, String)

初始化一個以指定端點配置與端點位址的新類別實例 WorkflowControlClient 。

WorkflowControlClient()

初始化 WorkflowControlClient 類別的新執行個體。

public:
 WorkflowControlClient();
public WorkflowControlClient();
Public Sub New ()

適用於

WorkflowControlClient(WorkflowControlEndpoint)

使用指定的 WorkflowControlClient,初始化 WorkflowControlEndpoint 類別的新實例。

public:
 WorkflowControlClient(System::ServiceModel::Activities::WorkflowControlEndpoint ^ workflowEndpoint);
public WorkflowControlClient(System.ServiceModel.Activities.WorkflowControlEndpoint workflowEndpoint);
new System.ServiceModel.Activities.WorkflowControlClient : System.ServiceModel.Activities.WorkflowControlEndpoint -> System.ServiceModel.Activities.WorkflowControlClient
Public Sub New (workflowEndpoint As WorkflowControlEndpoint)

參數

workflowEndpoint
WorkflowControlEndpoint

工作流程控制端點。

範例

以下範例展示了如何使用此建構子建立 WorkflowControlClient 實例。

WorkflowControlEndpoint wce = new WorkflowControlEndpoint(new BasicHttpBinding(), new EndpointAddress(new Uri("http://localhost/DataflowControl.xaml")));
WorkflowControlClient controlClient = new WorkflowControlClient(wce);

適用於

WorkflowControlClient(String)

初始化一個以指定端點配置的新類別實例 WorkflowControlClient 。

public:
 WorkflowControlClient(System::String ^ endpointConfigurationName);
public WorkflowControlClient(string endpointConfigurationName);
new System.ServiceModel.Activities.WorkflowControlClient : string -> System.ServiceModel.Activities.WorkflowControlClient
Public Sub New (endpointConfigurationName As String)

參數

endpointConfigurationName
String

該使用的配置。

範例

以下範例說明如何使用此建構子。

WorkflowControlClient controlClient = new WorkflowControlClient("ConfigName");

適用於

WorkflowControlClient(Binding, EndpointAddress)

初始化 WorkflowControlClient 一個以指定綁定方式 WorkflowControlEndpoint, ,

public:
 WorkflowControlClient(System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
public WorkflowControlClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.Activities.WorkflowControlClient : System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.Activities.WorkflowControlClient
Public Sub New (binding As Binding, remoteAddress As EndpointAddress)

參數

binding
Binding

綁定。

remoteAddress
EndpointAddress

工作流程控制端點。

範例

以下範例說明如何使用此建構子。

IWorkflowCreation creationClient = new ChannelFactory<IWorkflowCreation>(new BasicHttpBinding(), "http://localhost/DataflowControl.xaml/Creation").CreateChannel();

// Start a new instance of the workflow
Guid instanceId = creationClient.CreateSuspended(null);
WorkflowControlClient controlClient = new WorkflowControlClient(
    new BasicHttpBinding(),
    new EndpointAddress(new Uri("http://localhost/DataflowControl.xaml")));
controlClient.Unsuspend(instanceId);

適用於

WorkflowControlClient(String, EndpointAddress)

初始化一個以指定端點配置 和 WorkflowControlClient的新類別實例EndpointAddress。

public:
 WorkflowControlClient(System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
public WorkflowControlClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.Activities.WorkflowControlClient : string * System.ServiceModel.EndpointAddress -> System.ServiceModel.Activities.WorkflowControlClient
Public Sub New (endpointConfigurationName As String, remoteAddress As EndpointAddress)

參數

endpointConfigurationName
String

端點配置。

remoteAddress
EndpointAddress

端點地址。

範例

以下範例說明如何使用此建構子。

WorkflowControlClient controlClient = new WorkflowControlClient("ConfigName", new EndpointAddress(new Uri("http://localhost/DataflowControl.xaml")));

適用於

WorkflowControlClient(String, String)

初始化一個以指定端點配置與端點位址的新類別實例 WorkflowControlClient 。

public:
 WorkflowControlClient(System::String ^ endpointConfigurationName, System::String ^ remoteAddress);
public WorkflowControlClient(string endpointConfigurationName, string remoteAddress);
new System.ServiceModel.Activities.WorkflowControlClient : string * string -> System.ServiceModel.Activities.WorkflowControlClient
Public Sub New (endpointConfigurationName As String, remoteAddress As String)

參數

endpointConfigurationName
String

端點配置。

remoteAddress
String

端點地址。

範例

以下範例說明如何使用此建構子。

WorkflowControlClient controlClient = new WorkflowControlClient("ConfigName", "http://localhost/DataflowControl.xaml");

適用於