OptionsBuilderExtensions.ValidateOnStart<TOptions> Method
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.
Enforces options validation check on start rather than at run time.
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)
Type Parameters
- TOptions
The type of options.
Parameters
- optionsBuilder
- OptionsBuilder<TOptions>
The OptionsBuilder<TOptions> to configure options instance.
Returns
The OptionsBuilder<TOptions> so that additional calls can be chained.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.