Compartilhar via


FileConfigurationExtensions.SetFileProvider Método

Definição

Define o IFileProvider padrão a ser usado para provedores baseados em arquivo.

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

O IConfigurationBuilder ao qual adicionar.

fileProvider
IFileProvider

A instância padrão do provedor de arquivos.

Retornos

O IConfigurationBuilder.

Aplica-se a