語言

WSTrustChannelFactory.CreateChannel(EndpointAddress, Uri) 方法

定義

建立 WSTrustChannel 一個物件,用於透過指定的傳輸位址向特定端點位址的服務發送訊息。

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

參數

address
EndpointAddress

那 EndpointAddress 就是服務地點。

via
Uri

Uri該 that 包含通道傳送訊息的傳輸位址。

傳回

一個 Contract 代表新通道的物件。

備註

回傳的物件是該類別的 WSTrustChannel 一個實例。

適用於