語言

DuplexClientBase<TChannel> 建構函式

定義

初始化 DuplexClientBase<TChannel> 類別的新執行個體。

多載

名稱 Description
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)

來源:
DuplexClientBase.cs
來源:
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,binding或remoteAddress是。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,endpointConfigurationName或remoteAddress是。null

備註

WCF 會建立一個新 InstanceContext 物件,使用該 callbackInstance 物件來處理所有回調操作。

適用於

DuplexClientBase<TChannel>(InstanceContext, Binding, EndpointAddress)

來源:
DuplexClientBase.cs
來源:
DuplexClientBase.cs
來源:
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,endpointConfigurationName或remoteAddress是。null

備註

使用者提供的 是 callbackInstance 用來處理所有回撥操作的。

適用於