ConfigurationElementCollection.Reset(ConfigurationElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中重写时,将 ConfigurationElementCollection 重置为其未修改的状态。
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);
protected override void Reset(System.Configuration.ConfigurationElement parentElement);
override this.Reset : System.Configuration.ConfigurationElement -> unit
Protected Friend Overrides Sub Reset (parentElement As ConfigurationElement)
Protected Overrides Sub Reset (parentElement As ConfigurationElement)
参数
- parentElement
- ConfigurationElement
表示 ConfigurationElement 集合父元素(如果有);否则为 null。
注解
该方法的默认行为 Reset 是清除对象包含的任何修改元素 ConfigurationElementCollection ,并将修改后的元素设置为其父配置文件指定的值。 如果包含子元素中的任何 ConfigurationElementCollection 元素, Reset 则也会对这些子元素调用。