JsonConfigurationProvider 類別
定義
以 JSON 檔案為基礎的 FileConfigurationProvider。A JSON file based FileConfigurationProvider.
public ref class JsonConfigurationProvider : Microsoft::Extensions::Configuration::FileConfigurationProvider
public class JsonConfigurationProvider : Microsoft.Extensions.Configuration.FileConfigurationProvider
type JsonConfigurationProvider = class
inherit FileConfigurationProvider
Public Class JsonConfigurationProvider
Inherits FileConfigurationProvider
- 繼承
建構函式
JsonConfigurationProvider(JsonConfigurationSource) |
使用指定來源初始化新的執行個體。Initializes a new instance with the specified source. |
屬性
Data |
此提供者的組態索引碼值組。The configuration key value pairs for this provider. (繼承來源 ConfigurationProvider) |
Source |
此提供者的來源設定。The source settings for this provider. (繼承來源 FileConfigurationProvider) |
方法
Dispose() |
執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (繼承來源 FileConfigurationProvider) |
Dispose(Boolean) |
處置提供者。Dispose the provider. (繼承來源 FileConfigurationProvider) |
Equals(Object) |
判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object. (繼承來源 Object) |
GetChildKeys(IEnumerable<String>, String) |
傳回此提供者具有的索引鍵清單。Returns the list of keys that this provider has. (繼承來源 ConfigurationProvider) |
GetHashCode() |
做為預設雜湊函式。Serves as the default hash function. (繼承來源 Object) |
GetReloadToken() |
傳回可在重新載入此提供者時用於接聽的 IChangeToken。Returns a IChangeToken that can be used to listen when this provider is reloaded. (繼承來源 ConfigurationProvider) |
GetType() |
取得目前執行個體的 Type。Gets the Type of the current instance. (繼承來源 Object) |
Load() |
載入 Path 的檔案內容。Loads the contents of the file at Path. (繼承來源 FileConfigurationProvider) |
Load(Stream) |
從資料流載入 JSON 資料。Loads the JSON data from a stream. |
MemberwiseClone() |
建立目前 Object 的淺層複製。Creates a shallow copy of the current Object. (繼承來源 Object) |
OnReload() |
觸發重新載入變更權杖,並建立一個新權杖。Triggers the reload change token and creates a new one. (繼承來源 ConfigurationProvider) |
Set(String, String) |
設定指定索引鍵的值。Sets a value for a given key. (繼承來源 ConfigurationProvider) |
ToString() |
產生表示此提供者名稱和相關詳細資料的字串。Generates a string representing this provider name and relevant details. (繼承來源 FileConfigurationProvider) |
TryGet(String, String) |
嘗試尋找具有指定索引鍵的值,如果找到一個,則傳回 true;否則傳回 false。Attempts to find a value with the given key, returns true if one is found, false otherwise. (繼承來源 ConfigurationProvider) |