ConfigurationExtensions.Add<TSource> 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.
Adds a new configuration source.
public:
generic <typename TSource>
where TSource : Microsoft::Extensions::Configuration::IConfigurationSourcegcnew()[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ Add(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, Action<TSource> ^ configureSource);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder Add<TSource> (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Action<TSource>? configureSource) where TSource : Microsoft.Extensions.Configuration.IConfigurationSource, new();
static member Add : Microsoft.Extensions.Configuration.IConfigurationBuilder * Action<'Source (requires 'Source :> Microsoft.Extensions.Configuration.IConfigurationSource and 'Source : (new : unit -> 'Source))> -> Microsoft.Extensions.Configuration.IConfigurationBuilder (requires 'Source :> Microsoft.Extensions.Configuration.IConfigurationSource and 'Source : (new : unit -> 'Source))
<Extension()>
Public Function Add(Of TSource As {IConfigurationSourceNew}) (builder As IConfigurationBuilder, configureSource As Action(Of TSource)) As IConfigurationBuilder
Type Parameters
- TSource
Parameters
- builder
- IConfigurationBuilder
The builder to add to.
- configureSource
- Action<TSource>
Configures the source secrets.
Returns
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.