Jaa


WebSocketServerCustomValidationRequestedEventArgs Class

Definition

Provides data for a ServerCustomValidationRequested event on a WebSocket. This event occurs when a new, secure connection to a WebSocket is being made, and gives your code the opportunity to perform custom validation of the server certificates before the connection has been established.

public ref class WebSocketServerCustomValidationRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WebSocketServerCustomValidationRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WebSocketServerCustomValidationRequestedEventArgs
Public NotInheritable Class WebSocketServerCustomValidationRequestedEventArgs
Inheritance
Object Platform::Object IInspectable WebSocketServerCustomValidationRequestedEventArgs
Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

Instances of this object are created by the system and passed as an argument to your registered event handler.

Properties

ServerCertificate

The certificate being offered by the server for validation.

ServerCertificateErrors

A list of errors encountered in validating the server certificate.

ServerCertificateErrorSeverity

Gets the category of an error that occurred making an SSL connection with this WebSocket server.

ServerIntermediateCertificates

Gets a list of intermediate certificates from the validation process currently being validated.

Methods

GetDeferral()

Gets the Deferral object that manages the validation operation. Call this method when you begin your validation operation, and call Deferral.Complete when the operation is complete.

Reject()

Rejects validation of this server. Call this method when your validation has determined that you should not connect to the server.

Applies to