WSTrustChannelFactory.CreateChannel(EndpointAddress, Uri) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 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 就是服務地點。
傳回
一個 Contract 代表新通道的物件。
備註
回傳的物件是該類別的 WSTrustChannel 一個實例。