Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TransportContext.GetChannelBinding Method

Retrieves the requested channel binding.

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

abstract GetChannelBinding : 
        kind:ChannelBindingKind -> ChannelBinding

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 a null reference (Nothing in Visual Basic) if the channel binding is not supported by the current transport or by the operating system.

ExceptionCondition
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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft