NameValueFileSectionHandler 类

定义

提供对配置文件的访问。Provides access to a configuration file. 此类型支持 .NET 配置基础结构,不应从代码直接使用。This type supports the .NET configuration infrastructure and is not intended to be used directly from your code.

public ref class NameValueFileSectionHandler : System::Configuration::IConfigurationSectionHandler
public class NameValueFileSectionHandler : System.Configuration.IConfigurationSectionHandler
type NameValueFileSectionHandler = class
    interface IConfigurationSectionHandler
Public Class NameValueFileSectionHandler
Implements IConfigurationSectionHandler
继承
NameValueFileSectionHandler
实现

注解

file节的属性 <appSettings> 指定包含自定义应用程序配置设置的外部文件的相对路径。The file attribute of the <appSettings> section specifies a relative path to an external file that contains custom application-configuration settings. 文件中提供的详细信息充当 <appSettings> 配置文件中的部分。The details provided in the file act as an <appSettings> section in the configuration file. 使用类访问该文件 NameValueFileSectionHandlerThe file is accessed using the NameValueFileSectionHandler class. 文件的根元素必须与引用它的部分匹配。The file's root element must match the section referring to it.

构造函数

NameValueFileSectionHandler()

初始化 NameValueFileSectionHandler 类的新实例。Initializes a new instance of the NameValueFileSectionHandler class.

方法

Create(Object, Object, XmlNode)

创建新的配置处理程序,并根据指定参数将其添加到节处理程序集合中。Creates a new configuration handler and adds it to the section-handler collection based on the specified parameters.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅