Language

NewtonsoftJsonConfigurationSource Class

Definition

Represents a JSON file as an IConfigurationSource.

public ref class NewtonsoftJsonConfigurationSource : Microsoft::Extensions::Configuration::FileConfigurationSource
public class NewtonsoftJsonConfigurationSource : Microsoft.Extensions.Configuration.FileConfigurationSource
type NewtonsoftJsonConfigurationSource = class
    inherit FileConfigurationSource
Public Class NewtonsoftJsonConfigurationSource
Inherits FileConfigurationSource
Inheritance
NewtonsoftJsonConfigurationSource

Constructors

Name Description
NewtonsoftJsonConfigurationSource()

Properties

Name Description
FileProvider

Gets or sets the provider used to access the contents of the file.

(Inherited from FileConfigurationSource)
OnLoadException

Gets or sets the action that's called if an uncaught exception occurs in FileConfigurationProvider.Load.

(Inherited from FileConfigurationSource)
Optional

Gets or sets a value that indicates whether loading the file is optional.

(Inherited from FileConfigurationSource)
Path

Gets or sets the path to the file.

(Inherited from FileConfigurationSource)
ReloadDelay

Gets or sets the number of milliseconds that reload will wait before calling Load.

(Inherited from FileConfigurationSource)
ReloadOnChange

Gets or sets a value that indicates whether the source will be loaded if the underlying file changes.

(Inherited from FileConfigurationSource)

Methods

Name Description
Build(IConfigurationBuilder)

Builds the NewtonsoftJsonConfigurationProvider for this source.

EnsureDefaults(IConfigurationBuilder)

Called to use any default settings on the builder like the FileProvider or FileLoadExceptionHandler.

(Inherited from FileConfigurationSource)
ResolveFileProvider()

Creates a physical file provider for the file's directory if no file provider has been set, for absolute Path.

(Inherited from FileConfigurationSource)

Applies to