DuplexClientBase<TChannel> Constructors

Definition

DuplexClientBase<TChannel> 類別的新執行個體初始化。Initializes a new instance of the DuplexClientBase<TChannel> class.

Overloads

DuplexClientBase<TChannel>(Object)

使用指定的回呼物件來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object.

DuplexClientBase<TChannel>(InstanceContext)

使用指定的回呼物件來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object.

DuplexClientBase<TChannel>(Object, ServiceEndpoint)

使用指定的回呼物件與服務端點,初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class with the specified callback object and service endpoint.

DuplexClientBase<TChannel>(Object, String)

使用指定的回呼物件與組態名稱來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object and configuration name.

DuplexClientBase<TChannel>(InstanceContext, ServiceEndpoint)

使用指定的回呼物件與服務端點,初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class with the specified callback object and service endpoint.

DuplexClientBase<TChannel>(InstanceContext, String)

使用指定的回呼物件與組態名稱來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object and configuration name.

DuplexClientBase<TChannel>(Object, Binding, EndpointAddress)

使用指定的回呼物件、繫結以及服務端點位址來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, binding, and service endpoint address.

DuplexClientBase<TChannel>(Object, String, String)

使用指定的回呼物件、端點組態名稱以及服務端點位址來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, endpoint configuration name, and service endpoint address.

DuplexClientBase<TChannel>(InstanceContext, Binding, EndpointAddress)

使用指定的回呼物件、繫結以及服務端點位址來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, binding, and service endpoint address.

DuplexClientBase<TChannel>(InstanceContext, String, String)

使用指定的回呼物件、組態名稱以及服務端點位址,初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, configuration name, and service endpoint address.

DuplexClientBase<TChannel>(Object, String, EndpointAddress)

使用指定的回呼物件、組態名稱以及服務端點位址,初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, configuration name, and service endpoint address.

DuplexClientBase<TChannel>(InstanceContext, String, EndpointAddress)

使用指定的回呼物件、組態名稱以及服務端點位址,初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, configuration name, and service endpoint address.

DuplexClientBase<TChannel>(Object)

使用指定的回呼物件來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object.

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)

Parameters

callbackInstance
Object

用來建立執行個體內容的物件,可將回呼物件與服務通道建立關聯。An object used to create the instance context that associates the callback object with the channel to the service.

Exceptions

callbackInstancenullcallbackInstance is null.

Remarks

WCF 會使用 callbackInstance 物件來建立新的 InstanceContext 物件,以處理所有回呼作業。WCF creates a new InstanceContext object using the callbackInstance object to handle all callback operations.

DuplexClientBase<TChannel>(InstanceContext)

使用指定的回呼物件來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object.

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)

Parameters

callbackInstance
InstanceContext

將回呼物件與服務通道建立關聯的 InstanceContext 物件。An InstanceContext object that associates the callback object with the channel to the service.

Exceptions

callbackInstancenullcallbackInstance is null.

Remarks

由使用者提供的 callbackInstance 用於服務所有回呼作業。The callbackInstance provided by the user is used to service all callback operations.

DuplexClientBase<TChannel>(Object, ServiceEndpoint)

使用指定的回呼物件與服務端點,初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class with the specified callback object and service endpoint.

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)

Parameters

callbackInstance
Object

用來建立執行個體內容的物件,可將回呼物件與服務通道建立關聯。An object used to create the instance context that associates the callback object with the channel to the service.

endpoint
ServiceEndpoint

服務端點。The service endpoint.

Exceptions

callbackInstanceendpointnullcallbackInstance or endpoint is null.

DuplexClientBase<TChannel>(Object, String)

使用指定的回呼物件與組態名稱來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object and configuration name.

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)

Parameters

callbackInstance
Object

用來建立執行個體內容的物件,可將回呼物件與服務通道建立關聯。An object used to create the instance context that associates the callback object with the channel to the service.

endpointConfigurationName
String

應用程式組態檔中用戶端端點資訊的名稱。The name of the client endpoint information in the application configuration file.

Exceptions

callbackInstanceendpointConfigurationNamenullcallbackInstance or endpointConfigurationName is null.

Remarks

WCF 會使用 callbackInstance 物件來建立新的 InstanceContext 物件,以處理所有回呼作業。WCF creates a new InstanceContext object using the callbackInstance object to handle all callback operations.

DuplexClientBase<TChannel>(InstanceContext, ServiceEndpoint)

使用指定的回呼物件與服務端點,初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class with the specified callback object and service endpoint.

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)

Parameters

callbackInstance
InstanceContext

將回呼物件與服務通道建立關聯的 InstanceContext 物件。An InstanceContext object that associates the callback object with the channel to the service.

endpoint
ServiceEndpoint

服務端點。The service endpoint.

Exceptions

callbackInstanceendpointnullcallbackInstance or endpoint is null.

DuplexClientBase<TChannel>(InstanceContext, String)

使用指定的回呼物件與組態名稱來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object and configuration name.

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)

Parameters

callbackInstance
InstanceContext

用來建立執行個體內容的物件,可將回呼物件與服務通道建立關聯。An object used to create the instance context that associates the callback object with the channel to the service.

endpointConfigurationName
String

應用程式組態檔中用戶端端點資訊的名稱。The name of the client endpoint information in the application configuration file.

Exceptions

callbackInstanceendpointConfigurationNamenullcallbackInstance or endpointConfigurationName is null.

Remarks

由使用者提供的 callbackInstance 用於服務所有回呼作業。The callbackInstance provided by the user is used to service all callback operations.

DuplexClientBase<TChannel>(Object, Binding, EndpointAddress)

使用指定的回呼物件、繫結以及服務端點位址來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, binding, and service endpoint address.

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)

Parameters

callbackInstance
Object

用來建立執行個體內容的物件,可將回呼物件與服務通道建立關聯。An object used to create the instance context that associates the callback object with the channel to the service.

binding
Binding

用來呼叫服務的繫結。The binding with which to call the service.

remoteAddress
EndpointAddress

要使用的服務端點位址。The service endpoint address to use.

Exceptions

callbackInstancebindingremoteAddressnullcallbackInstance, binding or remoteAddress is null.

Remarks

WCF 會使用 callbackInstance 物件來建立新的 InstanceContext 物件,以處理所有回呼作業。WCF creates a new InstanceContext object using the callbackInstance object to handle all callback operations.

DuplexClientBase<TChannel>(Object, String, String)

使用指定的回呼物件、端點組態名稱以及服務端點位址來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, endpoint configuration name, and service endpoint address.

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)

Parameters

callbackInstance
Object

用來建立執行個體內容的物件,可將回呼物件與服務通道建立關聯。An object used to create the instance context that associates the callback object with the channel to the service.

endpointConfigurationName
String

應用程式組態檔中用戶端端點資訊的名稱。The name of the client endpoint information in the application configuration file.

remoteAddress
String

要使用之服務端點的位址。The address of the service endpoint to use.

Exceptions

callbackInstanceendpointConfigurationNameremoteAddressnullcallbackInstance, endpointConfigurationName or remoteAddress is null.

Remarks

WCF 會使用 callbackInstance 物件來建立新的 InstanceContext 物件,以處理所有回呼作業。WCF creates a new InstanceContext object using the callbackInstance object to handle all callback operations.

DuplexClientBase<TChannel>(InstanceContext, Binding, EndpointAddress)

使用指定的回呼物件、繫結以及服務端點位址來初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, binding, and service endpoint address.

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)

Parameters

callbackInstance
InstanceContext

用來建立執行個體內容的物件,可將回呼物件與服務通道建立關聯。An object used to create the instance context that associates the callback object with the channel to the service.

binding
Binding

用來呼叫服務的繫結。The binding with which to call the service.

remoteAddress
EndpointAddress

要使用的服務端點位址。The service endpoint address to use.

Remarks

由使用者提供的 callbackInstance 用於服務所有回呼作業。The callbackInstance provided by the user is used to service all callback operations.

DuplexClientBase<TChannel>(InstanceContext, String, String)

使用指定的回呼物件、組態名稱以及服務端點位址,初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, configuration name, and service endpoint address.

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)

Parameters

callbackInstance
InstanceContext

用來建立執行個體內容的物件,可將回呼物件與服務通道建立關聯。An object used to create the instance context that associates the callback object with the channel to the service.

endpointConfigurationName
String

應用程式組態檔中用戶端端點資訊的名稱。The name of the client endpoint information in the application configuration file.

remoteAddress
String

要使用之服務端點的位址。The address of the service endpoint to use.

Exceptions

callbackInstanceendpointConfigurationNameremoteAddressnullcallbackInstance, endpointConfigurationName or remoteAddress is null.

Remarks

由使用者提供的 callbackInstance 用於服務所有回呼作業。The callbackInstance provided by the user is used to service all callback operations.

DuplexClientBase<TChannel>(Object, String, EndpointAddress)

使用指定的回呼物件、組態名稱以及服務端點位址,初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, configuration name, and service endpoint address.

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

Parameters

callbackInstance
Object

用來建立執行個體內容的物件,可將回呼物件與服務通道建立關聯。An object used to create the instance context that associates the callback object with the channel to the service.

endpointConfigurationNamebindingConfigurationName
String

應用程式組態檔中用戶端端點資訊的名稱。The name of the client endpoint information in the application configuration file.

remoteAddress
EndpointAddress

要使用之服務端點的位址。The address of the service endpoint to use.

Exceptions

callbackInstance、組態名稱或 remoteAddressnullcallbackInstance, the configuration name or remoteAddress is null.

Remarks

WCF 會使用 callbackInstance 物件來建立新的 InstanceContext 物件,以處理所有回呼作業。WCF creates a new InstanceContext object using the callbackInstance object to handle all callback operations.

DuplexClientBase<TChannel>(InstanceContext, String, EndpointAddress)

使用指定的回呼物件、組態名稱以及服務端點位址,初始化 DuplexClientBase<TChannel> 類別的新執行個體。Initializes a new instance of the DuplexClientBase<TChannel> class using the specified callback object, configuration name, and service endpoint address.

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

Parameters

callbackInstance
InstanceContext

用來建立執行個體內容的物件,可將回呼物件與服務通道建立關聯。An object used to create the instance context that associates the callback object with the channel to the service.

endpointConfigurationName
String

應用程式組態檔中用戶端端點資訊的名稱。The name of the client endpoint information in the application configuration file.

remoteAddressaddress
EndpointAddress

要使用之服務端點的位址。The address of the service endpoint to use.

Exceptions

callbackInstanceendpointConfigurationName 或位址為 nullcallbackInstance, endpointConfigurationName, or the address is null.

Remarks

由使用者提供的 callbackInstance 用於服務所有回呼作業。The callbackInstance provided by the user is used to service all callback operations.

Applies to