IgnoreSectionHandler 类
定义
为不是由 System.Configuration 类型处理的配置节提供旧式节处理程序定义。Provides a legacy section-handler definition for configuration sections that are not handled by the System.Configuration types.
public ref class IgnoreSectionHandler : System::Configuration::IConfigurationSectionHandler
public class IgnoreSectionHandler : System.Configuration.IConfigurationSectionHandler
type IgnoreSectionHandler = class
interface IConfigurationSectionHandler
Public Class IgnoreSectionHandler
Implements IConfigurationSectionHandler
- 继承
-
IgnoreSectionHandler
- 实现
注解
配置系统完全分析配置文件以收集配置信息,并在遇到部分中没有相应条目的配置节时引发异常 configSections 。The configuration system completely parses configuration files to collect configuration information and throws exceptions when it encounters configuration sections that do not have a corresponding entry in the configSections section.
对于不由类型处理的部分 System.Configuration ,将提供新的包装类型 IgnoreSection 。For those sections not handled by the System.Configuration types, the new wrapper type IgnoreSection is provided. 这是为了防止配置文件分析异常。This is to prevent configuration-file parsing exceptions.
对于传统用途, IgnoreSectionHandler 还提供了。For legacy purposes the IgnoreSectionHandler is also provided.
构造函数
| IgnoreSectionHandler() |
初始化 IgnoreSectionHandler 类的新实例。Initializes a new instance of the IgnoreSectionHandler class. |
方法
| Create(Object, Object, XmlNode) |
创建新的配置处理程序并将指定的配置对象添加到节处理程序集合中。Creates a new configuration handler and adds the specified configuration object to the section-handler collection. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets 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) |