TransportContext.GetChannelBinding(ChannelBindingKind) Método

Definição

Recupera a ligação de canal solicitada.

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

O tipo de ligação de canal a recuperar.

Devoluções

O pedido ChannelBinding, ou null se a ligação de canal não for suportada pelo transporte atual ou pelo sistema operativo.

Exceções

kind deve ser Endpoint usado com o TransportContext recuperado da TransportContext propriedade.

Observações

Os valores possíveis para o kind parâmetro são Endpoint ou Unique.

Se uma aplicação tentar recuperar o token de ligação de canal (CBT) da TransportContext propriedade usando o GetChannelBinding método e o ChannelBindingKind não Endpointé , então o HttpListenerRequest lançará NotSupportedException. O HttpListenerRequest método substitui GetChannelBinding o método com uma implementação interna

Aplica-se a

Ver também