Sprog

AsyncValidateOptions<TOptions> Class

Definition

Implementation of IAsyncValidateOptions<TOptions>.

generic <typename TOptions>
 where TOptions : classpublic ref class AsyncValidateOptions : Microsoft::Extensions::Options::IAsyncValidateOptions<TOptions>
public class AsyncValidateOptions<TOptions> : Microsoft.Extensions.Options.IAsyncValidateOptions<TOptions> where TOptions : class
type AsyncValidateOptions<'Options (requires 'Options : null)> = class
    interface IAsyncValidateOptions<'Options (requires 'Options : null)>
Public Class AsyncValidateOptions(Of TOptions)
Implements IAsyncValidateOptions(Of TOptions)

Type Parameters

TOptions

The options type to validate.

Inheritance
AsyncValidateOptions<TOptions>
Implements

Constructors

Name Description
AsyncValidateOptions<TOptions>(String, Func<TOptions,CancellationToken,Task<Boolean>>, String)

Initializes a new instance of AsyncValidateOptions<TOptions>.

Properties

Name Description
FailureMessage

Gets the error to return when validation fails.

Name

Gets the options name.

Validation

Gets the asynchronous validation function.

Methods

Name Description
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
ValidateAsync(String, TOptions, CancellationToken)

Asynchronously validates a specific named options instance (or all when name is null).

Applies to