TransportContext.GetChannelBinding(ChannelBindingKind) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Récupère la liaison de canal demandée.
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
Paramètres
- kind
- ChannelBindingKind
Type de liaison de canal à récupérer.
Retours
La liaison de canal demandée ChannelBindingou null si la liaison de canal n’est pas prise en charge par le transport actuel ou par le système d’exploitation.
Exceptions
kind doit être Endpoint utilisé avec la TransportContextTransportContext propriété récupérée.
Remarques
Les valeurs possibles pour le kind paramètre sont Endpoint ou Unique.
Si une application tente de récupérer le jeton de liaison de canal (CBT) à partir de la propriété à l’aide de la TransportContext méthode et que ce GetChannelBindingChannelBindingKind n’est pas Endpointle cas, le HttpListenerRequest lève NotSupportedException. Remplace HttpListenerRequest la GetChannelBinding méthode par une implémentation interne