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 會使用 callbackInstance 物件來建立新的 InstanceContext 物件,以處理所有回呼作業。

適用於

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 會使用 callbackInstance 物件來建立新的 InstanceContext 物件,以處理所有回呼作業。

適用於

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 會使用 callbackInstance 物件來建立新的 InstanceContext 物件,以處理所有回呼作業。

適用於

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 會使用 callbackInstance 物件來建立新的 InstanceContext 物件,以處理所有回呼作業。

適用於

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 會使用 callbackInstance 物件來建立新的 InstanceContext 物件,以處理所有回呼作業。

適用於

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 用於服務所有回呼作業。

適用於