JsonConfigurationProvider Class

A JSON file based Microsoft.Extensions.Configuration.FileConfigurationProvider.

Namespace
Microsoft.Extensions.Configuration.Json
Assemblies
  • Microsoft.Extensions.Configuration.Json

Syntax

public class JsonConfigurationProvider : FileConfigurationProvider, IConfigurationProvider
class Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider

Constructors

JsonConfigurationProvider(Microsoft.Extensions.Configuration.Json.JsonConfigurationSource)

Initializes a new instance with the specified source.

Arguments:source (Microsoft.Extensions.Configuration.Json.JsonConfigurationSource) – The source settings.
public JsonConfigurationProvider(JsonConfigurationSource source)

Methods

Load(System.IO.Stream)

Loads the JSON data from a stream.

Arguments:stream (System.IO.Stream) – The stream to read.
public override void Load(Stream stream)