FileConfigurationExtensions.SetFileProvider 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.
Sets the default IFileProvider to be used for file-based providers.
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
Parameters
- builder
- IConfigurationBuilder
The IConfigurationBuilder to add to.
- fileProvider
- IFileProvider
The default file provider instance.
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.