Condividi tramite


FileConfigurationExtensions.SetFileProvider Metodo

Definizione

Imposta l'oggetto IFileProvider predefinito da usare per i provider basati su file.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ SetFileProvider(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, Microsoft::Extensions::FileProviders::IFileProvider ^ fileProvider);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder SetFileProvider (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Microsoft.Extensions.FileProviders.IFileProvider fileProvider);
static member SetFileProvider : Microsoft.Extensions.Configuration.IConfigurationBuilder * Microsoft.Extensions.FileProviders.IFileProvider -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function SetFileProvider (builder As IConfigurationBuilder, fileProvider As IFileProvider) As IConfigurationBuilder

Parametri

builder
IConfigurationBuilder

Oggetto IConfigurationBuilder in cui effettuare l'aggiunta.

fileProvider
IFileProvider

Istanza del provider di file predefinita.

Restituisce

Oggetto IConfigurationBuilder.

Si applica a