共用方式為


DuplexChannelFactory<TChannel>.CreateChannel 方法

定義

建立指向指定之端點位址的指定型別雙工通道。

多載

CreateChannel(Object, Binding, EndpointAddress, Uri)

在服務與用戶端的回呼執行個體之間建立雙工通道。

CreateChannel(InstanceContext)

在服務與用戶端的回呼執行個體之間建立雙工通道。

CreateChannel(Object, String)

在服務與用戶端的回呼執行個體之間建立雙工通道。

CreateChannel(EndpointAddress, Uri)

在服務與用戶端的回呼執行個體之間建立雙工通道。

CreateChannel(InstanceContext, EndpointAddress)

在服務與用戶端的回呼執行個體之間建立雙工通道。

CreateChannel(InstanceContext, String)

在服務與用戶端的回呼執行個體之間建立雙工通道。

CreateChannel(Object, Binding, EndpointAddress)

在服務與用戶端的回呼執行個體之間建立雙工通道。

CreateChannel(InstanceContext, Binding, EndpointAddress)

在服務與用戶端的回呼執行個體之間建立雙工通道。

CreateChannel(InstanceContext, EndpointAddress, Uri)

在服務與用戶端的回呼執行個體之間建立雙工通道。

CreateChannel(InstanceContext, Binding, EndpointAddress, Uri)

在服務與用戶端的回呼執行個體之間建立雙工通道。

CreateChannel(Object, Binding, EndpointAddress, Uri)

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

在服務與用戶端的回呼執行個體之間建立雙工通道。

public:
 static TChannel CreateChannel(System::Object ^ callbackObject, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress, Uri ^ via);
public static TChannel CreateChannel (object callbackObject, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress, Uri via);
static member CreateChannel : obj * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Shared Function CreateChannel (callbackObject As Object, binding As Binding, endpointAddress As EndpointAddress, via As Uri) As TChannel

參數

callbackObject
Object

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

binding
Binding

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

endpointAddress
EndpointAddress

提供服務位置的 EndpointAddress

via
Uri

包含訊息傳送之目標傳輸位址的 Uri

傳回

TChannel

用戶端與服務之間 TChannel 型別的通道 (處理站的泛型參數)。

例外狀況

bindingendpointAddressnull

callbackInstancecallbackInstance.UserObject 為 null

適用於

CreateChannel(InstanceContext)

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

在服務與用戶端的回呼執行個體之間建立雙工通道。

public:
 TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance);
public TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance);
override this.CreateChannel : System.ServiceModel.InstanceContext -> 'Channel
Public Function CreateChannel (callbackInstance As InstanceContext) As TChannel

參數

callbackInstance
InstanceContext

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

傳回

TChannel

用戶端與服務之間 TChannel 型別的雙工通道 (處理站的泛型參數)。

例外狀況

callbackInstancecallbackInstance.UserObject 為 null

適用於

CreateChannel(Object, String)

在服務與用戶端的回呼執行個體之間建立雙工通道。

public:
 static TChannel CreateChannel(System::Object ^ callbackObject, System::String ^ endpointConfigurationName);
public static TChannel CreateChannel (object callbackObject, string endpointConfigurationName);
static member CreateChannel : obj * string -> 'Channel
Public Shared Function CreateChannel (callbackObject As Object, endpointConfigurationName As String) As TChannel

參數

callbackObject
Object

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

endpointConfigurationName
String

用於端點組態的名稱。

傳回

TChannel

用戶端與服務之間 TChannel 型別的通道 (處理站的泛型參數)。

例外狀況

endpointConfigurationNamenull

callbackInstancecallbackInstance.UserObject 為 null

適用於

CreateChannel(EndpointAddress, Uri)

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

在服務與用戶端的回呼執行個體之間建立雙工通道。

public:
 override TChannel CreateChannel(System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
public override TChannel CreateChannel (System.ServiceModel.EndpointAddress address, Uri via);
override this.CreateChannel : System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Overrides Function CreateChannel (address As EndpointAddress, via As Uri) As TChannel

參數

address
EndpointAddress

提供服務位置的 EndpointAddress

via
Uri

包含訊息傳送之目標傳輸位址的 Uri

傳回

TChannel

用戶端與服務之間 TChannel 型別的雙工通道 (處理站的泛型參數)。

例外狀況

addressnull

適用於

CreateChannel(InstanceContext, EndpointAddress)

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

在服務與用戶端的回呼執行個體之間建立雙工通道。

public:
 TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::EndpointAddress ^ address);
public TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.EndpointAddress address);
override this.CreateChannel : System.ServiceModel.InstanceContext * System.ServiceModel.EndpointAddress -> 'Channel
Public Function CreateChannel (callbackInstance As InstanceContext, address As EndpointAddress) As TChannel

參數

callbackInstance
InstanceContext

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

address
EndpointAddress

提供服務位置的 EndpointAddress

傳回

TChannel

用戶端與服務之間 TChannel 型別的雙工通道 (處理站的泛型參數)。

例外狀況

addressnull

callbackInstancecallbackInstance.UserObject 為 null

適用於

CreateChannel(InstanceContext, String)

在服務與用戶端的回呼執行個體之間建立雙工通道。

public:
 static TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::String ^ endpointConfigurationName);
public static TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName);
static member CreateChannel : System.ServiceModel.InstanceContext * string -> 'Channel
Public Shared Function CreateChannel (callbackInstance As InstanceContext, endpointConfigurationName As String) As TChannel

參數

callbackInstance
InstanceContext

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

endpointConfigurationName
String

用於端點組態的名稱。

傳回

TChannel

用戶端與服務之間 TChannel 型別的通道 (處理站的泛型參數)。

例外狀況

endpointConfigurationNamenull

callbackInstancecallbackInstance.UserObject 為 null

適用於

CreateChannel(Object, Binding, EndpointAddress)

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

在服務與用戶端的回呼執行個體之間建立雙工通道。

public:
 static TChannel CreateChannel(System::Object ^ callbackObject, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress);
public static TChannel CreateChannel (object callbackObject, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress);
static member CreateChannel : obj * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> 'Channel
Public Shared Function CreateChannel (callbackObject As Object, binding As Binding, endpointAddress As EndpointAddress) As TChannel

參數

callbackObject
Object

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

binding
Binding

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

endpointAddress
EndpointAddress

提供服務位置的 EndpointAddress

傳回

TChannel

用戶端與服務之間 TChannel 型別的通道 (處理站的泛型參數)。

例外狀況

bindingendpointAddressnull

callbackInstancecallbackInstance.UserObject 為 null

適用於

CreateChannel(InstanceContext, Binding, EndpointAddress)

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

在服務與用戶端的回呼執行個體之間建立雙工通道。

public:
 static TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress);
public static TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress);
static member CreateChannel : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> 'Channel
Public Shared Function CreateChannel (callbackInstance As InstanceContext, binding As Binding, endpointAddress As EndpointAddress) As TChannel

參數

callbackInstance
InstanceContext

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

binding
Binding

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

endpointAddress
EndpointAddress

提供服務位置的 EndpointAddress

傳回

TChannel

用戶端與服務之間 TChannel 型別的通道 (處理站的泛型參數)。

例外狀況

bindingendpointAddressnull

callbackInstancecallbackInstance.UserObject 為 null

適用於

CreateChannel(InstanceContext, EndpointAddress, Uri)

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

在服務與用戶端的回呼執行個體之間建立雙工通道。

public:
 virtual TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
public virtual TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.EndpointAddress address, Uri via);
override this.CreateChannel : System.ServiceModel.InstanceContext * System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Overridable Function CreateChannel (callbackInstance As InstanceContext, address As EndpointAddress, via As Uri) As TChannel

參數

callbackInstance
InstanceContext

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

address
EndpointAddress

提供服務位置的 EndpointAddress

via
Uri

包含訊息傳送之目標傳輸位址的 Uri

傳回

TChannel

用戶端與服務之間 TChannel 型別的通道 (處理站的泛型參數)。

例外狀況

addressnull

callbackInstancecallbackInstance.UserObject 為 null

適用於

CreateChannel(InstanceContext, Binding, EndpointAddress, Uri)

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

在服務與用戶端的回呼執行個體之間建立雙工通道。

public:
 static TChannel CreateChannel(System::ServiceModel::InstanceContext ^ callbackInstance, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ endpointAddress, Uri ^ via);
public static TChannel CreateChannel (System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpointAddress, Uri via);
static member CreateChannel : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress * Uri -> 'Channel
Public Shared Function CreateChannel (callbackInstance As InstanceContext, binding As Binding, endpointAddress As EndpointAddress, via As Uri) As TChannel

參數

callbackInstance
InstanceContext

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

binding
Binding

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

endpointAddress
EndpointAddress

提供服務位置的 EndpointAddress

via
Uri

包含訊息傳送之目標傳輸位址的 Uri

傳回

TChannel

用戶端與服務之間 TChannel 型別的通道 (處理站的泛型參數)。

例外狀況

bindingendpointAddressnull

callbackInstancecallbackInstance.UserObject 為 null

適用於