ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>.Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode) 方法
定义
反转从配置层次结构的不同级别合并配置信息的效果。Reverses the effect of merging configuration information from different levels of the configuration hierarchy.
protected:
override void Unmerge(System::Configuration::ConfigurationElement ^ sourceElement, System::Configuration::ConfigurationElement ^ parentElement, System::Configuration::ConfigurationSaveMode saveMode);
protected override void Unmerge (System.Configuration.ConfigurationElement sourceElement, System.Configuration.ConfigurationElement parentElement, System.Configuration.ConfigurationSaveMode saveMode);
override this.Unmerge : System.Configuration.ConfigurationElement * System.Configuration.ConfigurationElement * System.Configuration.ConfigurationSaveMode -> unit
Protected Overrides Sub Unmerge (sourceElement As ConfigurationElement, parentElement As ConfigurationElement, saveMode As ConfigurationSaveMode)
参数
- sourceElement
- ConfigurationElement
当前级别上的一个包含属性合并视图的 ConfigurationElement。A ConfigurationElement object at the current level that contains a merged view of the properties.
- parentElement
- ConfigurationElement
返回当前元素的父 ConfigurationElement 对象,如果当前元素为顶级,则返回 null。The parent ConfigurationElement object of the current element, or null if this is the top level.
- saveMode
- ConfigurationSaveMode
一个可确定要包含哪些属性值的 ConfigurationSaveMode 枚举值。A ConfigurationSaveMode enumerated value that determines which property values to include.
注解
此方法可反转从配置层次结构的不同级别合并配置信息的效果。This method reverses the effect of merging configuration information from different levels of the configuration hierarchy. 这将允许在序列化之前,当前层次结构级别上的配置设置与父级别上的配置设置有所不同。This allows configuration set at the current hierarchy level to be differentiated from that set at parent levels, before serialization.
系统会对新的临时元素调用此方法,以将父对象与源对象进行比较。This method is called by the system on a new temporary element to compare the parent object and the source object. 然后根据 saveMode 值对临时对象进行设置,使其包含必须序列化的数据。Based on the saveMode value, it then sets the temporary object to contain the data that must be serialized. 有关保存模式的详细信息,请参阅 Minimal 。For more information about save modes, see Minimal.