OptionsBuilderDataAnnotationsExtensions.ValidateDataAnnotations<TOptions> Método

Definición

Registre esta instancia de opciones para la validación de sus objetos DataAnnotation.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ ValidateDataAnnotations(Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ optionsBuilder);
public static Microsoft.Extensions.Options.OptionsBuilder<TOptions> ValidateDataAnnotations<TOptions> (this Microsoft.Extensions.Options.OptionsBuilder<TOptions> optionsBuilder) where TOptions : class;
static member ValidateDataAnnotations : Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'Options : null)
<Extension()>
Public Function ValidateDataAnnotations(Of TOptions As Class) (optionsBuilder As OptionsBuilder(Of TOptions)) As OptionsBuilder(Of TOptions)

Parámetros de tipo

TOptions

Tipo de opciones que se va a configurar.

Parámetros

optionsBuilder
OptionsBuilder<TOptions>

El generador de opciones al que se van a agregar los servicios.

Devoluciones

La interfaz OptionsBuilder<TOptions> para que se puedan encadenar llamadas adicionales.

Se aplica a