Aracılığıyla paylaş


ConfigurationExtensions.Add<TSource> Yöntem

Tanım

Yeni bir yapılandırma kaynağı ekler.

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

Tür Parametreleri

TSource

Parametreler

builder
IConfigurationBuilder

IConfigurationBuilder eklenecek öğesini seçin.

configureSource
Action<TSource>

Kaynak gizli dizileri yapılandırılır.

Döndürülenler

IConfigurationBuilder.

Şunlara uygulanır