Sprog

AsyncValidateOptions<TOptions,TDep1,TDep2,TDep3,TDep4> Class

Definition

Implementation of IAsyncValidateOptions<TOptions>.

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

Type Parameters

TOptions

The options type to validate.

TDep1

First dependency type.

TDep2

Second dependency type.

TDep3

Third dependency type.

TDep4

Fourth dependency type.

Inheritance
AsyncValidateOptions<TOptions,TDep1,TDep2,TDep3,TDep4>
Implements

Constructors

Name Description
AsyncValidateOptions<TOptions,TDep1,TDep2,TDep3,TDep4>(String, TDep1, TDep2, TDep3, TDep4, Func<TOptions,TDep1,TDep2,TDep3, TDep4,CancellationToken,Task<Boolean>>, String)

Initializes a new instance of AsyncValidateOptions<TOptions,TDep1,TDep2,TDep3,TDep4>.

Properties

Name Description
Dependency1

Gets the first dependency.

Dependency2

Gets the second dependency.

Dependency3

Gets the third dependency.

Dependency4

Gets the fourth dependency.

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 specified named options instance (or all if name is null).

Applies to