ConfigurationElementCollectionType 枚举

定义

指定 ConfigurationElementCollectionType 对象的类型。

public enum class ConfigurationElementCollectionType
public enum ConfigurationElementCollectionType
type ConfigurationElementCollectionType = 
Public Enum ConfigurationElementCollectionType
继承
ConfigurationElementCollectionType

字段

AddRemoveClearMap 1

ConfigurationElementCollection 的默认类型。 此类型的集合包含可在配置文件的层次结构中进行合并的元素。 在这类层次结构的任何特定级别中,均可使用 addremoveclear 指令修改任何继承的属性和指定新的属性。

AddRemoveClearMapAlternate 3

除了使 ConfigurationElementCollection 对象对其内容进行排序以将继承的元素排列在最后外,此类型与 AddRemoveClearMap 相同。

BasicMap 0

此类型的集合包含应用于指定的级别(由这些元素指定)和所有子级别的元素。 子级别不能修改由此类型的父元素指定的属性。

BasicMapAlternate 2

除了使 ConfigurationElementCollection 对象对其内容进行排序以将继承的元素排列在最后外,此类型与 BasicMap 相同。

注解

此枚举包含属性的所有可能返回值 CollectionType 。 配置系统在运行时使用它来正确合并配置设置。 在创建扩展 ConfigurationElementCollection的自定义类时也使用它。

默认情况下,对象的类型为 ConfigurationElementCollectionAddRemoveClearMapBasicMap如果需要 ,请在CollectionType扩展 ConfigurationElementCollection时重写 属性。

适用于