HttpServerCustomValidationRequestedEventArgs HttpServerCustomValidationRequestedEventArgs HttpServerCustomValidationRequestedEventArgs HttpServerCustomValidationRequestedEventArgs Class

Definition

Provides data for the ServerCustomValidationRequested event.

public : sealed class HttpServerCustomValidationRequestedEventArgs : IHttpServerCustomValidationRequestedEventArgspublic sealed class HttpServerCustomValidationRequestedEventArgs : IHttpServerCustomValidationRequestedEventArgsPublic NotInheritable Class HttpServerCustomValidationRequestedEventArgs Implements IHttpServerCustomValidationRequestedEventArgs// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

This class is retrieved by the ServerCustomValidationRequested event.

Properties

RequestMessage RequestMessage RequestMessage RequestMessage

Gets the HTTP request containing the destination URI, headers, and body.

public : HttpRequestMessage RequestMessage { get; }public HttpRequestMessage RequestMessage { get; }Public ReadOnly Property RequestMessage As HttpRequestMessage// You can use this property in JavaScript.
Value
HttpRequestMessage HttpRequestMessage HttpRequestMessage HttpRequestMessage

The HTTP request containing the destination URI, headers, and body.

ServerCertificate ServerCertificate ServerCertificate ServerCertificate

Gets the X509Certificate provided by the server.

public : Certificate ServerCertificate { get; }public Certificate ServerCertificate { get; }Public ReadOnly Property ServerCertificate As Certificate// You can use this property in JavaScript.
Value
Certificate Certificate Certificate Certificate

The X509Certificate provided by the server.

ServerCertificateErrors ServerCertificateErrors ServerCertificateErrors ServerCertificateErrors

Gets the errors that the OS validation logic has found in this certificate or the chain.

public : IVectorView<ChainValidationResult> ServerCertificateErrors { get; }public IReadOnlyList<ChainValidationResult> ServerCertificateErrors { get; }Public ReadOnly Property ServerCertificateErrors As IReadOnlyList<ChainValidationResult>// You can use this property in JavaScript.
Value
IVectorView<ChainValidationResult> IReadOnlyList<ChainValidationResult> IReadOnlyList<ChainValidationResult> IReadOnlyList<ChainValidationResult>

The errors that the OS validation logic has found in this certificate or the chain.

ServerCertificateErrorSeverity ServerCertificateErrorSeverity ServerCertificateErrorSeverity ServerCertificateErrorSeverity

Gets the severity level of errors encountered.

public : SocketSslErrorSeverity ServerCertificateErrorSeverity { get; }public SocketSslErrorSeverity ServerCertificateErrorSeverity { get; }Public ReadOnly Property ServerCertificateErrorSeverity As SocketSslErrorSeverity// You can use this property in JavaScript.

ServerIntermediateCertificates ServerIntermediateCertificates ServerIntermediateCertificates ServerIntermediateCertificates

Gets the chain of intermediate certificates, ending in the root CA associated with the remote certificate.

public : IVectorView<Certificate> ServerIntermediateCertificates { get; }public IReadOnlyList<Certificate> ServerIntermediateCertificates { get; }Public ReadOnly Property ServerIntermediateCertificates As IReadOnlyList<Certificate>// You can use this property in JavaScript.
Value
IVectorView<Certificate> IReadOnlyList<Certificate> IReadOnlyList<Certificate> IReadOnlyList<Certificate>

The chain of intermediate certificates, ending in the root CA associated with the remote certificate.

Methods

GetDeferral() GetDeferral() GetDeferral() GetDeferral()

Requests that suspension of the event handler be delayed until the deferral is completed by calling the Complete method on the Deferral object.

public : Deferral GetDeferral()public Deferral GetDeferral()Public Function GetDeferral() As Deferral// You can use this method in JavaScript.
Returns

The deferral object.

Reject() Reject() Reject() Reject()

Reject the server's certificate. This will result in the client terminating the connection to the server.

public : void Reject()public void Reject()Public Function Reject() As void// You can use this method in JavaScript.