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 实例。

适用于