WorkflowControlClient 建構函式

定義

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

多載

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");

適用於