共用方式為


DuplexChannelFactory<TChannel> 建構函式

定義

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

多載

DuplexChannelFactory<TChannel>(Object)

使用實作回呼合約物件,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Type, String, EndpointAddress)

使用指定的回呼執行個體、組態與遠端位址,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Type, Binding, String)

使用指定的回呼執行個體、繫結與遠端位址,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Type, Binding, EndpointAddress)

使用指定的回呼執行個體、繫結與遠端位址,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(InstanceContext, String, EndpointAddress)

以可實作回呼合約與指定組態及端點位址的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(InstanceContext, Binding, String)

使用指定的執行個體內容、繫結與遠端位址,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Object, String, EndpointAddress)

以可實作回呼合約與指定組態及端點位址的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Object, Binding, String)

使用指定的回呼物件、繫結與遠端位址,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Object, Binding, EndpointAddress)

以可實作回呼合約與指定繫結及端點位址的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Type, String)

使用指定的回呼執行個體與組態型別,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(InstanceContext, Binding, EndpointAddress)

以可實作回呼合約與指定繫結及端點位址的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Type, Binding)

使用指定的回呼執行個體與繫結型別,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Type, ServiceEndpoint)

使用指定的回呼執行個體與服務端點型別,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Type)

使用指定的回呼執行個體型別,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Object, Binding)

以可實作回呼合約與指定繫結的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Object, ServiceEndpoint)

以可實作回呼合約與指定端點的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(InstanceContext)

使用指定的執行個體內容,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(InstanceContext, Binding)

以可實作回呼合約與指定繫結的內容來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(InstanceContext, ServiceEndpoint)

以可實作回呼合約與指定端點的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(InstanceContext, String)

以可實作回呼合約與指定組態的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Object, String)

以可實作回呼合約與指定組態的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

DuplexChannelFactory<TChannel>(Object)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

使用實作回呼合約物件,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::Object ^ callbackObject);
public DuplexChannelFactory (object callbackObject);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object)

參數

callbackObject
Object

用戶端用於接聽連線服務之訊息的 Object

例外狀況

callbackObjectnull

備註

使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的物件傳遞出去。

適用於

DuplexChannelFactory<TChannel>(Type, String, EndpointAddress)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

使用指定的回呼執行個體、組態與遠端位址,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(Type ^ callbackInstanceType, System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
public DuplexChannelFactory (Type callbackInstanceType, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * string * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, endpointConfigurationName As String, remoteAddress As EndpointAddress)

參數

callbackInstanceType
Type

提供用戶端用於接聽連線服務之訊息回呼執行個體的 Type

endpointConfigurationName
String

用於端點組態的名稱。

remoteAddress
EndpointAddress

提供服務位置的 EndpointAddress

例外狀況

callbackInstanceTypeendpointConfigurationNameremoteAddressnull

適用於

DuplexChannelFactory<TChannel>(Type, Binding, String)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

使用指定的回呼執行個體、繫結與遠端位址,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(Type ^ callbackInstanceType, System::ServiceModel::Channels::Binding ^ binding, System::String ^ remoteAddress);
public DuplexChannelFactory (Type callbackInstanceType, System.ServiceModel.Channels.Binding binding, string remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * System.ServiceModel.Channels.Binding * string -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, binding As Binding, remoteAddress As String)

參數

callbackInstanceType
Type

提供用戶端用於接聽連線服務之訊息回呼執行個體的 Type

binding
Binding

用於藉由處理站所產生之通道連接到服務的 Binding

remoteAddress
String

提供服務位置的遠端位址。

例外狀況

callbackInstanceTypebindingremoteAddressnull

適用於

DuplexChannelFactory<TChannel>(Type, Binding, EndpointAddress)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

使用指定的回呼執行個體、繫結與遠端位址,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(Type ^ callbackInstanceType, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
public DuplexChannelFactory (Type callbackInstanceType, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, binding As Binding, remoteAddress As EndpointAddress)

參數

callbackInstanceType
Type

提供用戶端用於接聽連線服務之訊息回呼執行個體的 Type

binding
Binding

用於藉由處理站所產生之通道連接到服務的 Binding

remoteAddress
EndpointAddress

提供服務位置的 EndpointAddress

例外狀況

callbackInstanceTypebindingremoteAddressnull

適用於

DuplexChannelFactory<TChannel>(InstanceContext, String, EndpointAddress)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

以可實作回呼合約與指定組態及端點位址的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext * string * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext, endpointConfigurationName As String, remoteAddress As EndpointAddress)

參數

callbackInstance
InstanceContext

用戶端用於接聽連線服務之訊息的 InstanceContext

endpointConfigurationName
String

用於端點組態的名稱。

remoteAddress
EndpointAddress

提供服務位置的 EndpointAddress

例外狀況

callbackInstanceendpointConfigurationNameremoteAddressnull

備註

使用這個建構函式,以程式設計方式將可實作目標服務位址資訊之回呼合約的執行個體內容物件以及位址資訊傳遞出去,然後透過用戶端應用程式組態檔來決定剩下的目標端點資訊。

適用於

DuplexChannelFactory<TChannel>(InstanceContext, Binding, String)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

使用指定的執行個體內容、繫結與遠端位址,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::String ^ remoteAddress);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, string remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding * string -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext, binding As Binding, remoteAddress As String)

參數

callbackInstance
InstanceContext

用戶端用於接聽連線服務之訊息的 InstanceContext

binding
Binding

用於藉由處理站所產生之通道連接到服務的 Binding

remoteAddress
String

提供服務位置的遠端位址。

例外狀況

callbackInstancebindingremoteAddressnull

適用於

DuplexChannelFactory<TChannel>(Object, String, EndpointAddress)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

以可實作回呼合約與指定組態及端點位址的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::Object ^ callbackObject, System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
public DuplexChannelFactory (object callbackObject, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj * string * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, endpointConfigurationName As String, remoteAddress As EndpointAddress)

參數

callbackObject
Object

用戶端用於接聽連線服務之訊息的 Object

endpointConfigurationName
String

用於端點組態的名稱。

remoteAddress
EndpointAddress

提供服務位置的 EndpointAddress

例外狀況

callbackObjectendpointConfigurationNameremoteAddressnull

備註

使用這個建構函式,以程式設計方式將可實作目標服務之回呼合約的服務物件以及位址資訊傳遞出去,然後透過用戶端應用程式組態檔來決定剩下的目標端點資訊。

適用於

DuplexChannelFactory<TChannel>(Object, Binding, String)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

使用指定的回呼物件、繫結與遠端位址,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::Object ^ callbackObject, System::ServiceModel::Channels::Binding ^ binding, System::String ^ remoteAddress);
public DuplexChannelFactory (object callbackObject, System.ServiceModel.Channels.Binding binding, string remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj * System.ServiceModel.Channels.Binding * string -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, binding As Binding, remoteAddress As String)

參數

callbackObject
Object

用戶端用於接聽連線服務之訊息的 Object

binding
Binding

用於藉由處理站所產生之通道連接到服務的 Binding

remoteAddress
String

提供服務位置的遠端位址。

例外狀況

callbackObjectbindingremoteAddressnull

適用於

DuplexChannelFactory<TChannel>(Object, Binding, EndpointAddress)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

以可實作回呼合約與指定繫結及端點位址的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::Object ^ callbackObject, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
public DuplexChannelFactory (object callbackObject, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, binding As Binding, remoteAddress As EndpointAddress)

參數

callbackObject
Object

用戶端用於接聽連線服務之訊息的 Object

binding
Binding

用於藉由處理站所產生之通道連接到服務的 Binding

remoteAddress
EndpointAddress

提供服務位置的 EndpointAddress

例外狀況

callbackObjectbindingremoteAddressnull

備註

使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的服務物件,以及繫結與位址資訊傳遞出去。

適用於

DuplexChannelFactory<TChannel>(Type, String)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

使用指定的回呼執行個體與組態型別,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(Type ^ callbackInstanceType, System::String ^ endpointConfigurationName);
public DuplexChannelFactory (Type callbackInstanceType, string endpointConfigurationName);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * string -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, endpointConfigurationName As String)

參數

callbackInstanceType
Type

提供用戶端用於接聽連線服務之訊息回呼執行個體的 Type

endpointConfigurationName
String

用於端點組態的名稱。

例外狀況

callbackInstanceTypeendpointConfigurationNamenull

適用於

DuplexChannelFactory<TChannel>(InstanceContext, Binding, EndpointAddress)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

以可實作回呼合約與指定繫結及端點位址的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext, binding As Binding, remoteAddress As EndpointAddress)

參數

callbackInstance
InstanceContext

用戶端用於接聽連線服務之訊息的 InstanceContext

binding
Binding

用於藉由處理站所產生之通道連接到服務的 Binding

remoteAddress
EndpointAddress

提供服務位置的 EndpointAddress

例外狀況

callbackInstancebindingremoteAddressnull

備註

使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的執行個體內容物件,以及繫結與位址資訊傳遞出去。

適用於

DuplexChannelFactory<TChannel>(Type, Binding)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

使用指定的回呼執行個體與繫結型別,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(Type ^ callbackInstanceType, System::ServiceModel::Channels::Binding ^ binding);
public DuplexChannelFactory (Type callbackInstanceType, System.ServiceModel.Channels.Binding binding);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * System.ServiceModel.Channels.Binding -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, binding As Binding)

參數

callbackInstanceType
Type

提供用戶端用於接聽連線服務之訊息回呼執行個體的 Type

binding
Binding

用於藉由處理站所產生之通道連接到服務的 Binding

例外狀況

callbackInstanceTypebindingnull

適用於

DuplexChannelFactory<TChannel>(Type, ServiceEndpoint)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

使用指定的回呼執行個體與服務端點型別,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(Type ^ callbackInstanceType, System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
public DuplexChannelFactory (Type callbackInstanceType, System.ServiceModel.Description.ServiceEndpoint endpoint);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type, endpoint As ServiceEndpoint)

參數

callbackInstanceType
Type

提供用戶端用於接聽連線服務之訊息回呼執行個體的 Type

endpoint
ServiceEndpoint

服務的 ServiceEndpoint

例外狀況

callbackInstanceTypenull

適用於

DuplexChannelFactory<TChannel>(Type)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

使用指定的回呼執行個體型別,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(Type ^ callbackInstanceType);
public DuplexChannelFactory (Type callbackInstanceType);
new System.ServiceModel.DuplexChannelFactory<'Channel> : Type -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstanceType As Type)

參數

callbackInstanceType
Type

提供用戶端用於接聽連線服務之訊息回呼執行個體的 Type

例外狀況

callbackInstanceTypenull

適用於

DuplexChannelFactory<TChannel>(Object, Binding)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

以可實作回呼合約與指定繫結的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::Object ^ callbackObject, System::ServiceModel::Channels::Binding ^ binding);
public DuplexChannelFactory (object callbackObject, System.ServiceModel.Channels.Binding binding);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj * System.ServiceModel.Channels.Binding -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, binding As Binding)

參數

callbackObject
Object

用戶端用於接聽連線服務之訊息的 Object

binding
Binding

用於藉由處理站所產生之通道連接到服務的 Binding

例外狀況

callbackObjectbindingnull

備註

使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的執行個體內容物件,以及繫結資訊傳遞出去。

適用於

DuplexChannelFactory<TChannel>(Object, ServiceEndpoint)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

以可實作回呼合約與指定端點的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::Object ^ callbackObject, System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
public DuplexChannelFactory (object callbackObject, System.ServiceModel.Description.ServiceEndpoint endpoint);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, endpoint As ServiceEndpoint)

參數

callbackObject
Object

用戶端用於接聽連線服務之訊息的 Object

endpoint
ServiceEndpoint

處理站產生的通道所連接的 ServiceEndpoint

例外狀況

callbackObjectnull

備註

使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的服務物件,以及服務端點資訊傳遞出去。

適用於

DuplexChannelFactory<TChannel>(InstanceContext)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

使用指定的執行個體內容,初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext)

參數

callbackInstance
InstanceContext

用戶端用於接聽連線服務之訊息的 InstanceContext

例外狀況

callbackInstancenull

適用於

DuplexChannelFactory<TChannel>(InstanceContext, Binding)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

以可實作回呼合約與指定繫結的內容來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext, binding As Binding)

參數

callbackInstance
InstanceContext

用戶端用於接聽連線服務之訊息的 InstanceContext

binding
Binding

用於藉由處理站所產生之通道連接到服務的 Binding

例外狀況

callbackInstancebindingnull

備註

使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的執行個體內容物件,以及繫結資訊傳遞出去。

適用於

DuplexChannelFactory<TChannel>(InstanceContext, ServiceEndpoint)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

以可實作回呼合約與指定端點的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Description.ServiceEndpoint endpoint);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext, endpoint As ServiceEndpoint)

參數

callbackInstance
InstanceContext

用戶端用於接聽連線服務之訊息的 InstanceContext

endpoint
ServiceEndpoint

處理站產生的通道所連接的 ServiceEndpoint

例外狀況

callbackInstancenull

備註

使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的執行個體內容物件,以及端點資訊傳遞出去。

適用於

DuplexChannelFactory<TChannel>(InstanceContext, String)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

以可實作回呼合約與指定組態的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName);
public DuplexChannelFactory (System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName);
new System.ServiceModel.DuplexChannelFactory<'Channel> : System.ServiceModel.InstanceContext * string -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackInstance As InstanceContext, endpointConfigurationName As String)

參數

callbackInstance
InstanceContext

用戶端用於接聽連線服務之訊息的 InstanceContext

endpointConfigurationName
String

用於端點組態的名稱。

例外狀況

callbackInstanceendpointConfigurationNamenull

備註

使用這個建構函式來傳遞可實作目標服務之回呼合約的執行個體內容物件,然後透過用戶端應用程式組態檔來決定目標端點資訊。

適用於

DuplexChannelFactory<TChannel>(Object, String)

來源:
DuplexChannelFactory.cs
來源:
DuplexChannelFactory.cs

以可實作回呼合約與指定組態的物件來初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。

public:
 DuplexChannelFactory(System::Object ^ callbackObject, System::String ^ endpointConfigurationName);
public DuplexChannelFactory (object callbackObject, string endpointConfigurationName);
new System.ServiceModel.DuplexChannelFactory<'Channel> : obj * string -> System.ServiceModel.DuplexChannelFactory<'Channel>
Public Sub New (callbackObject As Object, endpointConfigurationName As String)

參數

callbackObject
Object

用戶端用於接聽連線服務之訊息的 Object

endpointConfigurationName
String

用於端點的組態名稱。

例外狀況

callbackObjectendpointConfigurationNamenull

備註

使用這個建構函式來傳遞可實作目標服務之回呼合約的服務物件,然後透過用戶端應用程式組態檔來決定目標端點資訊。

適用於