ConfigurationElementCollection.Reset(ConfigurationElement) 方法

定义

在派生的类中重写时,将 ConfigurationElementCollection 重置为其未被修改时的状态。Resets the ConfigurationElementCollection to its unmodified state when overridden in a derived class.

protected:
 override void Reset(System::Configuration::ConfigurationElement ^ parentElement);
protected public:
 override void Reset(System::Configuration::ConfigurationElement ^ parentElement);
protected override void Reset (System.Configuration.ConfigurationElement parentElement);
protected internal override void Reset (System.Configuration.ConfigurationElement parentElement);
override this.Reset : System.Configuration.ConfigurationElement -> unit
Protected Overrides Sub Reset (parentElement As ConfigurationElement)
Protected Friend Overrides Sub Reset (parentElement As ConfigurationElement)

参数

parentElement
ConfigurationElement

表示集合父元素(如果有)的 ConfigurationElement;否则为 nullThe ConfigurationElement representing the collection parent element, if any; otherwise, null.

注解

Reset 方法的默认行为是清除 ConfigurationElementCollection 对象包含的任何已修改的元素,并将修改后的元素设置为其父配置文件指定的值。The default behavior for the Reset method is to clear any modified elements a ConfigurationElementCollection object contains and to set the modified elements to the values specified by their parent configuration file. 如果 ConfigurationElementCollection 中的任何元素包含子元素,则也会对这些子元素调用 ResetIf any element in the ConfigurationElementCollection has child elements, Reset is also called on those child elements.

适用于