Json​Configuration​Extensions Json​Configuration​Extensions Class

Definition

Extension methods for adding JsonConfigurationProvider.
public static class JsonConfigurationExtensionsPublic Module JsonConfigurationExtensions
Inheritance
System.ObjectSystem.Object
JsonConfigurationExtensionsJsonConfigurationExtensions

Inherited Members

System.Object

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

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
builder
IConfigurationBuilder IConfigurationBuilder
The to add to.
provider
IFileProvider IFileProvider
The to use to access the file.
path
System.String System.String
Path relative to the base path stored in 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
IConfigurationBuilder IConfigurationBuilder
The .

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
builder
IConfigurationBuilder IConfigurationBuilder
The to add to.
path
System.String System.String
Path relative to the base path stored in of builder.
Returns
IConfigurationBuilder IConfigurationBuilder
The .

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
builder
IConfigurationBuilder IConfigurationBuilder
The to add to.
path
System.String System.String
Path relative to the base path stored in of builder.
optional
System.Boolean System.Boolean
Whether the file is optional.
Returns
IConfigurationBuilder IConfigurationBuilder
The .

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
IConfigurationBuilder IConfigurationBuilder
The to add to.
path
System.String System.String
Path relative to the base path stored in 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
IConfigurationBuilder IConfigurationBuilder
The .