TransportContext.GetChannelBinding(ChannelBindingKind) Método

Definición

Recupera el enlace de canal solicitado.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

Parámetros

kind
ChannelBindingKind

Tipo de enlace de canal que se va a recuperar.The type of channel binding to retrieve.

Devoluciones

ChannelBinding

Objeto ChannelBinding solicitado o null si el transporte actual o el sistema operativo no admiten el enlace de canal.The requested ChannelBinding, or null if the channel binding is not supported by the current transport or by the operating system.

Excepciones

kind debe ser Endpoint para usarse con el TransportContext recuperado de la propiedad TransportContext.kind is must be Endpoint for use with the TransportContext retrieved from the TransportContext property.

Comentarios

Los valores posibles para el kind parámetro son Endpoint o Unique .The possible values for the kind parameter are Endpoint or Unique.

Si una aplicación intenta recuperar el token de enlace de canal (CBT) de la TransportContext propiedad utilizando el GetChannelBinding método y ChannelBindingKind no es Endpoint , se HttpListenerRequest iniciará NotSupportedException .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. HttpListenerRequestInvalida el GetChannelBinding método con una implementación internaThe HttpListenerRequest overrides the GetChannelBinding method with an internal implementation

Se aplica a

Consulte también