Compartir a través de


FileConfigurationExtensions.SetFileProvider Método

Definición

Establece el objeto IFileProvider predeterminado que se va a usar para los proveedores basados en archivos.

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

Parámetros

builder
IConfigurationBuilder

El objeto IConfigurationBuilder al que se va a agregar.

fileProvider
IFileProvider

La instancia del proveedor de archivos predeterminado.

Devoluciones

El parámetro de cadena de consulta IConfigurationBuilder.

Se aplica a