语言

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

适用于