Muokkaa

Jaa


TransportContext.GetChannelBinding(ChannelBindingKind) Method

Definition

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

Parameters

kind
ChannelBindingKind

The type of channel binding to retrieve.

Returns

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

Exceptions

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

Remarks

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

Applies to

See also