KeyPerFileConfigurationProvider Class

Definition

使用目錄檔案作為組態索引鍵/值的 ConfigurationProviderA ConfigurationProvider that uses a directory's files as configuration key/values.

public ref class KeyPerFileConfigurationProvider : Microsoft::Extensions::Configuration::ConfigurationProvider
public class KeyPerFileConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider
type KeyPerFileConfigurationProvider = class
    inherit ConfigurationProvider
Public Class KeyPerFileConfigurationProvider
Inherits ConfigurationProvider
Inheritance
KeyPerFileConfigurationProvider

Constructors

KeyPerFileConfigurationProvider(KeyPerFileConfigurationSource)

初始化新的執行個體。Initializes a new instance.

Properties

Data

此提供者的組態索引碼值組。The configuration key value pairs for this provider.

(Inherited from ConfigurationProvider)

Methods

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetChildKeys(IEnumerable<String>, String)

傳回此提供者具有的索引鍵清單。Returns the list of keys that this provider has.

(Inherited from ConfigurationProvider)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetReloadToken()

傳回可在重新載入此提供者時用於接聽的 IChangeTokenReturns a IChangeToken that can be used to listen when this provider is reloaded.

(Inherited from ConfigurationProvider)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
Load()

載入 docker 祕密。Loads the docker secrets.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(Inherited from Object)
OnReload()

觸發重新載入變更權杖,並建立一個新權杖。Triggers the reload change token and creates a new one.

(Inherited from ConfigurationProvider)
Set(String, String)

設定指定索引鍵的值。Sets a value for a given key.

(Inherited from ConfigurationProvider)
ToString()

產生表示此提供者名稱和相關詳細資料的字串。Generates a string representing this provider name and relevant details.

ToString()

產生表示此提供者名稱和相關詳細資料的字串。Generates a string representing this provider name and relevant details.

(Inherited from ConfigurationProvider)
TryGet(String, String)

嘗試尋找具有指定索引鍵的值,如果找到一個,則傳回 true;否則傳回 false。Attempts to find a value with the given key, returns true if one is found, false otherwise.

(Inherited from ConfigurationProvider)

Applies to