共用方式為


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

傳回

Contract 代表新的通道物件。

備註

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

適用於