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

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

例外

callbackInstancenull

注解

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 对象。

例外

callbackInstancenull

注解

用户提供的 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

服务终结点。

例外

callbackInstanceendpointnull

适用于

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

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

例外

callbackInstanceendpointConfigurationNamenull

注解

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

服务终结点。

例外

callbackInstanceendpointnull

适用于

DuplexClientBase<TChannel>(InstanceContext, String)

Source:
DuplexClientBase.cs
Source:
DuplexClientBase.cs

使用指定的回调对象和配置名称初始化 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

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

例外

callbackInstanceendpointConfigurationNamenull

注解

用户提供的 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

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

例外

callbackInstancebindingremoteAddressnull

注解

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,则配置名称或 remoteAddressnull

注解

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

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

例外

callbackInstanceendpointConfigurationNameremoteAddressnull

注解

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)

Source:
DuplexClientBase.cs
Source:
DuplexClientBase.cs

使用指定的回调对象、配置名称和服务终结点地址初始化 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

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

例外

callbackInstanceendpointConfigurationName 或地址为 null

注解

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

适用于

DuplexClientBase<TChannel>(InstanceContext, String, String)

Source:
DuplexClientBase.cs
Source:
DuplexClientBase.cs

使用指定的回调对象、配置名称和服务终结点地址初始化 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

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

例外

callbackInstanceendpointConfigurationNameremoteAddressnull

注解

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

适用于