HttpListenerRequest.TransportContext Propriedade

Definição

Obtém o TransportContext da solicitação do cliente.Gets the TransportContext for the client request.

public:
 property System::Net::TransportContext ^ TransportContext { System::Net::TransportContext ^ get(); };
public System.Net.TransportContext TransportContext { get; }
member this.TransportContext : System.Net.TransportContext
Public ReadOnly Property TransportContext As TransportContext

Valor da propriedade

TransportContext

Um TransportContext objeto para a solicitação do cliente.A TransportContext object for the client request.

Comentários

A TransportContext propriedade pode ser usada para recuperar o token de associação de canal (CBT) para um HttpListenerRequest que foi enviado usando HTTPS.The TransportContext property can be used to retrieve the channel binding token (CBT) for an HttpListenerRequest which was sent using HTTPS.

Um aplicativo poderia usar a TransportContext propriedade para executar a autenticação personalizada usando chamadas para a função nativa AcceptSecurityContext do Win32.An application could use the TransportContext property to perform custom authentication using calls to the native Win32 AcceptSecurityContext function.

Se um aplicativo tentar recuperar o CBT (token de associação de canal) dessa TransportContext propriedade usando o GetChannelBinding método e o ChannelBindingKind não for Endpoint , o emitirá HttpListenerRequest NotSupportedException .If an application attempts to retrieve the channel binding token (CBT) from this TransportContext property using the GetChannelBinding method and the ChannelBindingKind is not Endpoint, then the HttpListenerRequest will throw NotSupportedException. O HttpListenerRequest substitui o GetChannelBinding método por uma implementação interna.The HttpListenerRequest overrides the GetChannelBinding method with an internal implementation.

Aplica-se a

Confira também