JsonConfigurationExtensions JsonConfigurationExtensions Class

Extension methods for adding JsonConfigurationProvider.

Syntax

Declaration

public static class JsonConfigurationExtensionsPublic Module JsonConfigurationExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • JsonConfigurationExtensions
    JsonConfigurationExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

Adds a JSON configuration source to builder.
Adds the JSON configuration provider at path to builder.
Adds the JSON configuration provider at path to builder.
Adds the JSON configuration provider at path to builder.

Methods

  • AddJsonFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)
    AddJsonFile(IConfigurationBuilder, IFileProvider, String, Boolean, Boolean)
    Adds a JSON configuration source to builder.
    public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, IFileProvider provider, string path, bool optional, bool reloadOnChange)<ExtensionAttribute>
    Public Shared Function AddJsonFile(builder As IConfigurationBuilder, provider As IFileProvider, path As String, optional As Boolean, reloadOnChange As Boolean) As IConfigurationBuilder

    Parameters

    Returns

  • AddJsonFile(IConfigurationBuilder, String)
    AddJsonFile(IConfigurationBuilder, String)
    Adds the JSON configuration provider at path to builder.
    public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, string path)<ExtensionAttribute>
    Public Shared Function AddJsonFile(builder As IConfigurationBuilder, path As String) As IConfigurationBuilder

    Parameters

    Returns

  • AddJsonFile(IConfigurationBuilder, String, Boolean)
    AddJsonFile(IConfigurationBuilder, String, Boolean)
    Adds the JSON configuration provider at path to builder.
    public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, string path, bool optional)<ExtensionAttribute>
    Public Shared Function AddJsonFile(builder As IConfigurationBuilder, path As String, optional As Boolean) As IConfigurationBuilder

    Parameters

    Returns

  • AddJsonFile(IConfigurationBuilder, String, Boolean, Boolean)
    AddJsonFile(IConfigurationBuilder, String, Boolean, Boolean)
    Adds the JSON configuration provider at path to builder.
    public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange)<ExtensionAttribute>
    Public Shared Function AddJsonFile(builder As IConfigurationBuilder, path As String, optional As Boolean, reloadOnChange As Boolean) As IConfigurationBuilder

    Parameters

    • builder
      The IConfigurationBuilder to add to.
    • path
      System.String
      System.String
      Path relative to the base path stored in Properties of builder.
    • optional
      System.Boolean
      System.Boolean
      Whether the file is optional.
    • reloadOnChange
      System.Boolean
      System.Boolean
      Whether the configuration should be reloaded if the file changes.

    Returns

Details

Assembly

Microsoft.Extensions.Configuration.Json.dll