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