AsyncValidateOptions<TOptions,TDep1,TDep2,TDep3> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implementation of IAsyncValidateOptions<TOptions>.
generic <typename TOptions, typename TDep1, typename TDep2, typename TDep3>
where TOptions : classpublic ref class AsyncValidateOptions : Microsoft::Extensions::Options::IAsyncValidateOptions<TOptions>
public class AsyncValidateOptions<TOptions,TDep1,TDep2,TDep3> : Microsoft.Extensions.Options.IAsyncValidateOptions<TOptions> where TOptions : class
type AsyncValidateOptions<'Options, 'TDep1, 'TDep2, 'TDep3 (requires 'Options : null)> = class
interface IAsyncValidateOptions<'Options (requires 'Options : null)>
Public Class AsyncValidateOptions(Of TOptions, TDep1, TDep2, TDep3)
Implements IAsyncValidateOptions(Of TOptions)
Type Parameters
- TOptions
The options type to validate.
- TDep1
First dependency type.
- TDep2
Second dependency type.
- TDep3
Third dependency type.
- Inheritance
-
AsyncValidateOptions<TOptions,TDep1,TDep2,TDep3>
- Implements
Constructors
Properties
| Name | Description |
|---|---|
| Dependency1 |
Gets the first dependency. |
| Dependency2 |
Gets the second dependency. |
| Dependency3 |
Gets the third 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 |