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.

TransportContext::GetChannelBinding Method (ChannelBindingKind)

 

Retrieves the requested channel binding.

Namespace:   System.Net
Assembly:  System (in System.dll)

public:
virtual ChannelBinding^ GetChannelBinding(
	ChannelBindingKind kind
) abstract

Parameters

kind
Type: System.Security.Authentication.ExtendedProtection::ChannelBindingKind

The type of channel binding to retrieve.

Return Value

Type: System.Security.Authentication.ExtendedProtection::ChannelBinding^

The requested ChannelBinding, or null if the channel binding is not supported by the current transport or by the operating system.

Exception Condition
NotSupportedException

kind is must be Endpoint for use with the TransportContext retrieved from the TransportContext property.

The possible values for the kind parameter are Endpoint or Unique.

If an application attempts to retrieve the channel binding token (CBT) from the TransportContext property using the GetChannelBinding method and the ChannelBindingKind is not Endpoint, then the HttpListenerRequest will throw NotSupportedException. The HttpListenerRequest overrides the GetChannelBinding method with an internal implementation

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft