OptionsFactory<TOptions> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
OptionsFactory<TOptions>(IEnumerable<IConfigureOptions<TOptions>>, IEnumerable<IPostConfigureOptions<TOptions>>)
使用指定的選項組態,初始化新的執行個體。
public:
OptionsFactory(System::Collections::Generic::IEnumerable<Microsoft::Extensions::Options::IConfigureOptions<TOptions> ^> ^ setups, System::Collections::Generic::IEnumerable<Microsoft::Extensions::Options::IPostConfigureOptions<TOptions> ^> ^ postConfigures);
public OptionsFactory (System.Collections.Generic.IEnumerable<Microsoft.Extensions.Options.IConfigureOptions<TOptions>> setups, System.Collections.Generic.IEnumerable<Microsoft.Extensions.Options.IPostConfigureOptions<TOptions>> postConfigures);
new Microsoft.Extensions.Options.OptionsFactory<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> : seq<Microsoft.Extensions.Options.IConfigureOptions<'Options>> * seq<Microsoft.Extensions.Options.IPostConfigureOptions<'Options>> -> Microsoft.Extensions.Options.OptionsFactory<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
new Microsoft.Extensions.Options.OptionsFactory<'Options (requires 'Options : null)> : seq<Microsoft.Extensions.Options.IConfigureOptions<'Options>> * seq<Microsoft.Extensions.Options.IPostConfigureOptions<'Options>> -> Microsoft.Extensions.Options.OptionsFactory<'Options (requires 'Options : null)>
Public Sub New (setups As IEnumerable(Of IConfigureOptions(Of TOptions)), postConfigures As IEnumerable(Of IPostConfigureOptions(Of TOptions)))
參數
- setups
- IEnumerable<IConfigureOptions<TOptions>>
要執行的組態動作。
- postConfigures
- IEnumerable<IPostConfigureOptions<TOptions>>
要執行的初始化動作。
適用於
OptionsFactory<TOptions>(IEnumerable<IConfigureOptions<TOptions>>, IEnumerable<IPostConfigureOptions<TOptions>>, IEnumerable<IValidateOptions<TOptions>>)
使用指定的選項組態,初始化新的執行個體。
public:
OptionsFactory(System::Collections::Generic::IEnumerable<Microsoft::Extensions::Options::IConfigureOptions<TOptions> ^> ^ setups, System::Collections::Generic::IEnumerable<Microsoft::Extensions::Options::IPostConfigureOptions<TOptions> ^> ^ postConfigures, System::Collections::Generic::IEnumerable<Microsoft::Extensions::Options::IValidateOptions<TOptions> ^> ^ validations);
public OptionsFactory (System.Collections.Generic.IEnumerable<Microsoft.Extensions.Options.IConfigureOptions<TOptions>> setups, System.Collections.Generic.IEnumerable<Microsoft.Extensions.Options.IPostConfigureOptions<TOptions>> postConfigures, System.Collections.Generic.IEnumerable<Microsoft.Extensions.Options.IValidateOptions<TOptions>> validations);
new Microsoft.Extensions.Options.OptionsFactory<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> : seq<Microsoft.Extensions.Options.IConfigureOptions<'Options>> * seq<Microsoft.Extensions.Options.IPostConfigureOptions<'Options>> * seq<Microsoft.Extensions.Options.IValidateOptions<'Options>> -> Microsoft.Extensions.Options.OptionsFactory<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
new Microsoft.Extensions.Options.OptionsFactory<'Options (requires 'Options : null)> : seq<Microsoft.Extensions.Options.IConfigureOptions<'Options>> * seq<Microsoft.Extensions.Options.IPostConfigureOptions<'Options>> * seq<Microsoft.Extensions.Options.IValidateOptions<'Options>> -> Microsoft.Extensions.Options.OptionsFactory<'Options (requires 'Options : null)>
Public Sub New (setups As IEnumerable(Of IConfigureOptions(Of TOptions)), postConfigures As IEnumerable(Of IPostConfigureOptions(Of TOptions)), validations As IEnumerable(Of IValidateOptions(Of TOptions)))
參數
- setups
- IEnumerable<IConfigureOptions<TOptions>>
要執行的組態動作。
- postConfigures
- IEnumerable<IPostConfigureOptions<TOptions>>
要執行的初始化動作。
- validations
- IEnumerable<IValidateOptions<TOptions>>
要執行的驗證。