IInternalConfigRoot 接口

定义

定义由内部 .NET 结构用于支持配置根对象的接口。Defines interfaces used by internal .NET structures to support a configuration root object.

public interface class IInternalConfigRoot
public interface IInternalConfigRoot
[System.Runtime.InteropServices.ComVisible(false)]
public interface IInternalConfigRoot
type IInternalConfigRoot = interface
[<System.Runtime.InteropServices.ComVisible(false)>]
type IInternalConfigRoot = interface
Public Interface IInternalConfigRoot
属性

属性

IsDesignTime

返回一个值,它指示配置是否为设计时配置。Returns a value indicating whether the configuration is a design-time configuration.

方法

GetConfigRecord(String)

返回一个 IInternalConfigRecord 对象,表示由配置路径指定的配置。Returns an IInternalConfigRecord object representing a configuration specified by a configuration path.

GetSection(String, String)

返回一个 Object,表示配置文件某一节中的数据。Returns an Object representing the data in a section of a configuration file.

GetUniqueConfigPath(String)

返回一个值,它表示具有配置数据的最近配置上级的文件路径。Returns a value representing the file path of the nearest configuration ancestor that has configuration data.

GetUniqueConfigRecord(String)

返回一个 IInternalConfigRecord 对象,表示给定配置路径的唯一配置记录。Returns an IInternalConfigRecord object representing a unique configuration record for given configuration path.

Init(IInternalConfigHost, Boolean)

初始化配置对象。Initializes a configuration object.

RemoveConfig(String)

查找并移除给定配置路径的配置记录及其所有子级。Finds and removes a configuration record and all its children for a given configuration path.

事件

ConfigChanged

表示处理 ConfigChanged 对象的 IInternalConfigRoot 事件的方法。Represents the method that handles the ConfigChanged event of an IInternalConfigRoot object.

ConfigRemoved

表示处理 ConfigRemoved 对象的 IInternalConfigRoot 事件的方法。Represents the method that handles the ConfigRemoved event of a IInternalConfigRoot object.

适用于