语言

DuplexClientBase<TChannel> 构造函数

定义

初始化 DuplexClientBase<TChannel> 类的新实例。

重载

名称 说明
DuplexClientBase<TChannel>(Object)

使用指定的回调对象初始化类的新实例 DuplexClientBase<TChannel> 。

DuplexClientBase<TChannel>(InstanceContext)

使用指定的回调对象初始化类的新实例 DuplexClientBase<TChannel> 。

DuplexClientBase<TChannel>(Object, ServiceEndpoint)

使用指定的回调对象和服务终结点初始化类的新实例 DuplexClientBase<TChannel> 。

DuplexClientBase<TChannel>(Object, String)

使用指定的回调对象和配置名称初始化类的新实例 DuplexClientBase<TChannel> 。

DuplexClientBase<TChannel>(InstanceContext, ServiceEndpoint)

使用指定的回调对象和服务终结点初始化类的新实例 DuplexClientBase<TChannel> 。

DuplexClientBase<TChannel>(InstanceContext, String)

使用指定的回调对象和配置名称初始化类的新实例 DuplexClientBase<TChannel> 。

DuplexClientBase<TChannel>(Object, Binding, EndpointAddress)

使用指定的回调对象、绑定和服务终结点地址初始化类的新实例 DuplexClientBase<TChannel> 。

DuplexClientBase<TChannel>(Object, String, EndpointAddress)

使用指定的回调对象、配置名称和服务终结点地址初始化类的新实例 DuplexClientBase<TChannel> 。

DuplexClientBase<TChannel>(Object, String, String)

使用指定的回调对象、终结点配置名称和服务终结点地址初始化类的新实例 DuplexClientBase<TChannel> 。

DuplexClientBase<TChannel>(InstanceContext, Binding, EndpointAddress)

使用指定的回调对象、绑定和服务终结点地址初始化类的新实例 DuplexClientBase<TChannel> 。

DuplexClientBase<TChannel>(InstanceContext, String, EndpointAddress)

使用指定的回调对象、配置名称和服务终结点地址初始化类的新实例 DuplexClientBase<TChannel> 。

DuplexClientBase<TChannel>(InstanceContext, String, String)

使用指定的回调对象、配置名称和服务终结点地址初始化类的新实例 DuplexClientBase<TChannel> 。

DuplexClientBase<TChannel>(Object)

使用指定的回调对象初始化类的新实例 DuplexClientBase<TChannel> 。

protected:
 DuplexClientBase(System::Object ^ callbackInstance);
protected DuplexClientBase(object callbackInstance);
new System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)> : obj -> System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As Object)

参数

callbackInstance
Object

用于创建实例上下文的对象,该实例上下文将回调对象与通道关联到服务。

例外

callbackInstance 是 null。

注解

WCF 使用InstanceContext对象创建一个新callbackInstance对象来处理所有回调操作。

适用于

DuplexClientBase<TChannel>(InstanceContext)

Source:
DuplexClientBase.cs
Source:
DuplexClientBase.cs

使用指定的回调对象初始化类的新实例 DuplexClientBase<TChannel> 。

protected:
 DuplexClientBase(System::ServiceModel::InstanceContext ^ callbackInstance);
protected DuplexClientBase(System.ServiceModel.InstanceContext callbackInstance);
new System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.InstanceContext -> System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As InstanceContext)

参数

callbackInstance
InstanceContext

一个 InstanceContext 对象,该对象将回调对象与通道关联到服务。

例外

callbackInstance 是 null。

注解

callbackInstance用户提供的用于服务所有回调操作。

适用于

DuplexClientBase<TChannel>(Object, ServiceEndpoint)

使用指定的回调对象和服务终结点初始化类的新实例 DuplexClientBase<TChannel> 。

protected:
 DuplexClientBase(System::Object ^ callbackInstance, System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
protected DuplexClientBase(object callbackInstance, System.ServiceModel.Description.ServiceEndpoint endpoint);
new System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)> : obj * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As Object, endpoint As ServiceEndpoint)

参数

callbackInstance
Object

用于创建实例上下文的对象,该实例上下文将回调对象与通道关联到服务。

endpoint
ServiceEndpoint

服务终结点。

例外

callbackInstance 或 endpoint 为 null.

适用于

DuplexClientBase<TChannel>(Object, String)

使用指定的回调对象和配置名称初始化类的新实例 DuplexClientBase<TChannel> 。

protected:
 DuplexClientBase(System::Object ^ callbackInstance, System::String ^ endpointConfigurationName);
protected DuplexClientBase(object callbackInstance, string endpointConfigurationName);
new System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)> : obj * string -> System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As Object, endpointConfigurationName As String)

参数

callbackInstance
Object

用于创建实例上下文的对象,该实例上下文将回调对象与通道关联到服务。

endpointConfigurationName
String

应用程序配置文件中的客户端终结点信息的名称。

例外

callbackInstance 或 endpointConfigurationName 为 null.

注解

WCF 使用InstanceContext对象创建一个新callbackInstance对象来处理所有回调操作。

适用于

DuplexClientBase<TChannel>(InstanceContext, ServiceEndpoint)

使用指定的回调对象和服务终结点初始化类的新实例 DuplexClientBase<TChannel> 。

protected:
 DuplexClientBase(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
protected DuplexClientBase(System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Description.ServiceEndpoint endpoint);
new System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.InstanceContext * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As InstanceContext, endpoint As ServiceEndpoint)

参数

callbackInstance
InstanceContext

一个 InstanceContext 对象,该对象将回调对象与通道关联到服务。

endpoint
ServiceEndpoint

服务终结点。

例外

callbackInstance 或 endpoint 为 null.

适用于

DuplexClientBase<TChannel>(InstanceContext, String)

使用指定的回调对象和配置名称初始化类的新实例 DuplexClientBase<TChannel> 。

protected:
 DuplexClientBase(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName);
protected DuplexClientBase(System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName);
new System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.InstanceContext * string -> System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As InstanceContext, endpointConfigurationName As String)

参数

callbackInstance
InstanceContext

用于创建实例上下文的对象,该实例上下文将回调对象与通道关联到服务。

endpointConfigurationName
String

应用程序配置文件中的客户端终结点信息的名称。

例外

callbackInstance 或 endpointConfigurationName 为 null.

注解

callbackInstance用户提供的用于服务所有回调操作。

适用于

DuplexClientBase<TChannel>(Object, Binding, EndpointAddress)

使用指定的回调对象、绑定和服务终结点地址初始化类的新实例 DuplexClientBase<TChannel> 。

protected:
 DuplexClientBase(System::Object ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
protected DuplexClientBase(object callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)> : obj * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As Object, binding As Binding, remoteAddress As EndpointAddress)

参数

callbackInstance
Object

用于创建实例上下文的对象,该实例上下文将回调对象与通道关联到服务。

binding
Binding

要调用服务的绑定。

remoteAddress
EndpointAddress

要使用的服务终结点地址。

例外

callbackInstance或 bindingremoteAddress 为 null。

注解

WCF 使用InstanceContext对象创建一个新callbackInstance对象来处理所有回调操作。

适用于

DuplexClientBase<TChannel>(Object, String, EndpointAddress)

使用指定的回调对象、配置名称和服务终结点地址初始化类的新实例 DuplexClientBase<TChannel> 。

protected:
 DuplexClientBase(System::Object ^ callbackInstance, System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
protected DuplexClientBase(object callbackInstance, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)> : obj * string * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As Object, endpointConfigurationName As String, remoteAddress As EndpointAddress)

参数

callbackInstance
Object

用于创建实例上下文的对象,该实例上下文将回调对象与通道关联到服务。

endpointConfigurationName
String

应用程序配置文件中的客户端终结点信息的名称。

remoteAddress
EndpointAddress

要使用的服务终结点的地址。

例外

callbackInstance,配置名称或 remoteAddress 为 null。

注解

WCF 使用InstanceContext对象创建一个新callbackInstance对象来处理所有回调操作。

适用于

DuplexClientBase<TChannel>(Object, String, String)

使用指定的回调对象、终结点配置名称和服务终结点地址初始化类的新实例 DuplexClientBase<TChannel> 。

protected:
 DuplexClientBase(System::Object ^ callbackInstance, System::String ^ endpointConfigurationName, System::String ^ remoteAddress);
protected DuplexClientBase(object callbackInstance, string endpointConfigurationName, string remoteAddress);
new System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)> : obj * string * string -> System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As Object, endpointConfigurationName As String, remoteAddress As String)

参数

callbackInstance
Object

用于创建实例上下文的对象,该实例上下文将回调对象与通道关联到服务。

endpointConfigurationName
String

应用程序配置文件中的客户端终结点信息的名称。

remoteAddress
String

要使用的服务终结点的地址。

例外

callbackInstance或 endpointConfigurationNameremoteAddress 为 null。

注解

WCF 使用InstanceContext对象创建一个新callbackInstance对象来处理所有回调操作。

适用于

DuplexClientBase<TChannel>(InstanceContext, Binding, EndpointAddress)

Source:
DuplexClientBase.cs
Source:
DuplexClientBase.cs
Source:
DuplexClientBase.cs

使用指定的回调对象、绑定和服务终结点地址初始化类的新实例 DuplexClientBase<TChannel> 。

protected:
 DuplexClientBase(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
protected DuplexClientBase(System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As InstanceContext, binding As Binding, remoteAddress As EndpointAddress)

参数

callbackInstance
InstanceContext

用于创建实例上下文的对象,该实例上下文将回调对象与通道关联到服务。

binding
Binding

要调用服务的绑定。

remoteAddress
EndpointAddress

要使用的服务终结点地址。

注解

callbackInstance用户提供的用于服务所有回调操作。

适用于

DuplexClientBase<TChannel>(InstanceContext, String, EndpointAddress)

使用指定的回调对象、配置名称和服务终结点地址初始化类的新实例 DuplexClientBase<TChannel> 。

protected:
 DuplexClientBase(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
protected DuplexClientBase(System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.InstanceContext * string * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As InstanceContext, endpointConfigurationName As String, remoteAddress As EndpointAddress)

参数

callbackInstance
InstanceContext

用于创建实例上下文的对象,该实例上下文将回调对象与通道关联到服务。

endpointConfigurationName
String

应用程序配置文件中的客户端终结点信息的名称。

remoteAddress
EndpointAddress

要使用的服务终结点的地址。

例外

callbackInstance, endpointConfigurationName或地址为 null。

注解

callbackInstance用户提供的用于服务所有回调操作。

适用于

DuplexClientBase<TChannel>(InstanceContext, String, String)

使用指定的回调对象、配置名称和服务终结点地址初始化类的新实例 DuplexClientBase<TChannel> 。

protected:
 DuplexClientBase(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName, System::String ^ remoteAddress);
protected DuplexClientBase(System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName, string remoteAddress);
new System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)> : System.ServiceModel.InstanceContext * string * string -> System.ServiceModel.DuplexClientBase<'Channel (requires 'Channel : null)>
Protected Sub New (callbackInstance As InstanceContext, endpointConfigurationName As String, remoteAddress As String)

参数

callbackInstance
InstanceContext

用于创建实例上下文的对象,该实例上下文将回调对象与通道关联到服务。

endpointConfigurationName
String

应用程序配置文件中的客户端终结点信息的名称。

remoteAddress
String

要使用的服务终结点的地址。

例外

callbackInstance或 endpointConfigurationNameremoteAddress 为 null。

注解

callbackInstance用户提供的用于服务所有回调操作。

适用于