TransportContext.GetChannelBinding(ChannelBindingKind) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the requested channel binding.
public:
abstract System::Security::Authentication::ExtendedProtection::ChannelBinding ^ GetChannelBinding(System::Security::Authentication::ExtendedProtection::ChannelBindingKind kind);
public abstract System.Security.Authentication.ExtendedProtection.ChannelBinding GetChannelBinding(System.Security.Authentication.ExtendedProtection.ChannelBindingKind kind);
public abstract System.Security.Authentication.ExtendedProtection.ChannelBinding? GetChannelBinding(System.Security.Authentication.ExtendedProtection.ChannelBindingKind kind);
abstract member GetChannelBinding : System.Security.Authentication.ExtendedProtection.ChannelBindingKind -> System.Security.Authentication.ExtendedProtection.ChannelBinding
Public MustOverride Function GetChannelBinding (kind As ChannelBindingKind) As ChannelBinding
- kind
- ChannelBindingKind
The type of channel binding to retrieve.
The requested ChannelBinding, or null
if the channel binding is not supported by the current transport or by the operating system.
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
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: