ValidationRequestedEventArgs Class

Definition

Provides information about the OnValidationRequested event.

public ref class ValidationRequestedEventArgs sealed : EventArgs
public sealed class ValidationRequestedEventArgs : EventArgs
type ValidationRequestedEventArgs = class
    inherit EventArgs
Public NotInheritable Class ValidationRequestedEventArgs
Inherits EventArgs
Inheritance
ValidationRequestedEventArgs

Constructors

Name Description
ValidationRequestedEventArgs()

Creates a new instance of ValidationRequestedEventArgs.

ValidationRequestedEventArgs(CancellationToken)

Creates a new instance of ValidationRequestedEventArgs with the specified CancellationToken.

Fields

Name Description
Empty

Gets a shared empty instance of ValidationRequestedEventArgs.

Properties

Name Description
CancellationToken

Gets a token that signals when the caller has requested cancellation of the in-flight async validation pass. Synchronous handlers can ignore this; async handlers that perform long-running work (database lookups, remote API calls) should pass it to their downstream APIs so the work can be aborted promptly.

Applies to