Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WSTrustChannelFactory::CreateChannel Method (EndpointAddress^, Uri^)

.NET Framework (current version)
 

Creates a WSTrustChannel object that is used to send messages to a service at a specific endpoint address through a specified transport address.

Namespace:   System.ServiceModel.Security
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
virtual IWSTrustChannelContract^ CreateChannel(
	EndpointAddress^ address,
	Uri^ via
) override

Parameters

address
Type: System.ServiceModel::EndpointAddress^

The EndpointAddress that provides the location of the service.

via
Type: System::Uri^

The Uri that contains the transport address to which the channel sends messages.

Return Value

Type: System.ServiceModel.Security::IWSTrustChannelContract^

A Contract object that represents the new channel.

The object returned is an instance of the WSTrustChannel class.

.NET Framework
Available since 4.5
Return to top
Show:
© 2017 Microsoft