DuplexChannelFactory<TChannel> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 DuplexChannelFactory<TChannel> 類別的新執行個體。
多載
DuplexChannelFactory<TChannel>(Object)
使用實作回呼合約物件,初始化 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
為 null
。
備註
使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的物件傳遞出去。
適用於
DuplexChannelFactory<TChannel>(Type, String, EndpointAddress)
使用指定的回呼執行個體、組態與遠端位址,初始化 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)
參數
- endpointConfigurationName
- String
用於端點組態的名稱。
- remoteAddress
- EndpointAddress
提供服務位置的 EndpointAddress。
例外狀況
callbackInstanceType
、endpointConfigurationName
或 remoteAddress
為 null
。
適用於
DuplexChannelFactory<TChannel>(Type, Binding, String)
使用指定的回呼執行個體、繫結與遠端位址,初始化 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)
參數
- remoteAddress
- String
提供服務位置的遠端位址。
例外狀況
callbackInstanceType
、binding
或 remoteAddress
為 null
。
適用於
DuplexChannelFactory<TChannel>(Type, Binding, EndpointAddress)
使用指定的回呼執行個體、繫結與遠端位址,初始化 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)
參數
- remoteAddress
- EndpointAddress
提供服務位置的 EndpointAddress。
例外狀況
callbackInstanceType
、binding
或 remoteAddress
為 null
。
適用於
DuplexChannelFactory<TChannel>(InstanceContext, String, EndpointAddress)
以可實作回呼合約與指定組態及端點位址的物件來初始化 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。
例外狀況
callbackInstance
、endpointConfigurationName
或 remoteAddress
為 null
。
備註
使用這個建構函式,以程式設計方式將可實作目標服務位址資訊之回呼合約的執行個體內容物件以及位址資訊傳遞出去,然後透過用戶端應用程式組態檔來決定剩下的目標端點資訊。
適用於
DuplexChannelFactory<TChannel>(InstanceContext, Binding, String)
使用指定的執行個體內容、繫結與遠端位址,初始化 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。
- remoteAddress
- String
提供服務位置的遠端位址。
例外狀況
callbackInstance
、binding
或 remoteAddress
為 null
。
適用於
DuplexChannelFactory<TChannel>(Object, String, EndpointAddress)
以可實作回呼合約與指定組態及端點位址的物件來初始化 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)
參數
- endpointConfigurationName
- String
用於端點組態的名稱。
- remoteAddress
- EndpointAddress
提供服務位置的 EndpointAddress。
例外狀況
callbackObject
、endpointConfigurationName
或 remoteAddress
為 null
。
備註
使用這個建構函式,以程式設計方式將可實作目標服務之回呼合約的服務物件以及位址資訊傳遞出去,然後透過用戶端應用程式組態檔來決定剩下的目標端點資訊。
適用於
DuplexChannelFactory<TChannel>(Object, Binding, String)
使用指定的回呼物件、繫結與遠端位址,初始化 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)
參數
- remoteAddress
- String
提供服務位置的遠端位址。
例外狀況
callbackObject
、binding
或 remoteAddress
為 null
。
適用於
DuplexChannelFactory<TChannel>(Object, Binding, EndpointAddress)
以可實作回呼合約與指定繫結及端點位址的物件來初始化 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)
參數
- remoteAddress
- EndpointAddress
提供服務位置的 EndpointAddress。
例外狀況
callbackObject
、binding
或 remoteAddress
為 null
。
備註
使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的服務物件,以及繫結與位址資訊傳遞出去。
適用於
DuplexChannelFactory<TChannel>(Type, String)
使用指定的回呼執行個體與組態型別,初始化 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)
參數
- endpointConfigurationName
- String
用於端點組態的名稱。
例外狀況
callbackInstanceType
或 endpointConfigurationName
為 null
。
適用於
DuplexChannelFactory<TChannel>(InstanceContext, Binding, EndpointAddress)
以可實作回呼合約與指定繫結及端點位址的物件來初始化 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。
- remoteAddress
- EndpointAddress
提供服務位置的 EndpointAddress。
例外狀況
callbackInstance
、binding
或 remoteAddress
為 null
。
備註
使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的執行個體內容物件,以及繫結與位址資訊傳遞出去。
適用於
DuplexChannelFactory<TChannel>(Type, Binding)
使用指定的回呼執行個體與繫結型別,初始化 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
或 binding
為 null
。
適用於
DuplexChannelFactory<TChannel>(Type, ServiceEndpoint)
使用指定的回呼執行個體與服務端點型別,初始化 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)
參數
- endpoint
- ServiceEndpoint
服務的 ServiceEndpoint。
例外狀況
callbackInstanceType
為 null
。
適用於
DuplexChannelFactory<TChannel>(Type)
使用指定的回呼執行個體型別,初始化 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
為 null
。
適用於
DuplexChannelFactory<TChannel>(Object, Binding)
以可實作回呼合約與指定繫結的物件來初始化 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
或 binding
為 null
。
備註
使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的執行個體內容物件,以及繫結資訊傳遞出去。
適用於
DuplexChannelFactory<TChannel>(Object, ServiceEndpoint)
以可實作回呼合約與指定端點的物件來初始化 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)
參數
- endpoint
- ServiceEndpoint
處理站產生的通道所連接的 ServiceEndpoint。
例外狀況
callbackObject
為 null
。
備註
使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的服務物件,以及服務端點資訊傳遞出去。
適用於
DuplexChannelFactory<TChannel>(InstanceContext)
使用指定的執行個體內容,初始化 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。
例外狀況
callbackInstance
為 null
。
適用於
DuplexChannelFactory<TChannel>(InstanceContext, Binding)
以可實作回呼合約與指定繫結的內容來初始化 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。
例外狀況
callbackInstance
或 binding
為 null
。
備註
使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的執行個體內容物件,以及繫結資訊傳遞出去。
適用於
DuplexChannelFactory<TChannel>(InstanceContext, ServiceEndpoint)
以可實作回呼合約與指定端點的物件來初始化 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。
例外狀況
callbackInstance
為 null
。
備註
使用這個建構函式,以程式設計方式 (而不是藉由應用程式組態檔) 將可實作目標服務之回呼合約的執行個體內容物件,以及端點資訊傳遞出去。
適用於
DuplexChannelFactory<TChannel>(InstanceContext, String)
以可實作回呼合約與指定組態的物件來初始化 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
用於端點組態的名稱。
例外狀況
callbackInstance
或 endpointConfigurationName
為 null
。
備註
使用這個建構函式來傳遞可實作目標服務之回呼合約的執行個體內容物件,然後透過用戶端應用程式組態檔來決定目標端點資訊。
適用於
DuplexChannelFactory<TChannel>(Object, String)
以可實作回呼合約與指定組態的物件來初始化 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)
參數
- endpointConfigurationName
- String
用於端點的組態名稱。
例外狀況
callbackObject
或 endpointConfigurationName
為 null
。
備註
使用這個建構函式來傳遞可實作目標服務之回呼合約的服務物件,然後透過用戶端應用程式組態檔來決定目標端點資訊。