OptionsBuilderExtensions.ValidateOnStart<TOptions> Metoda

Definice

Vynucuje ověření možností při spuštění, nikoli v modulu runtime.

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

Parametry typu

TOptions

Typ možností.

Parametry

optionsBuilder
OptionsBuilder<TOptions>

Konfigurace OptionsBuilder<TOptions> instance možností.

Návraty

Aby OptionsBuilder<TOptions> bylo možné zřetězovat další volání.

Platí pro