ConfigurationPropertyOptions 枚举

定义

指定要应用于属性的选项。Specifies the options to apply to a property.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class ConfigurationPropertyOptions
[System.Flags]
public enum ConfigurationPropertyOptions
type ConfigurationPropertyOptions = 
Public Enum ConfigurationPropertyOptions
继承
ConfigurationPropertyOptions
属性

字段

IsAssemblyStringTransformationRequired 16

指示在针对早期版本的 .NET Framework 序列化配置属性时,是否需要转换该属性的程序集名称。Indicates whether the assembly name for the configuration property requires transformation when it is serialized for an earlier version of the .NET Framework.

IsDefaultCollection 1

指示该属性为默认集合。Indicates that the property is a default collection.

IsKey 4

指示该属性为集合键。Indicates that the property is a collection key.

IsRequired 2

指示该属性是必需的。Indicates that the property is required.

IsTypeStringTransformationRequired 8

指示在针对早期版本的 .NET Framework 序列化配置属性时,是否需要转换该属性的类型名称。Indicates whether the type name for the configuration property requires transformation when it is serialized for an earlier version of the .NET Framework.

IsVersionCheckRequired 32

指示进行序列化时是否应查询配置属性的父配置节,以确定是否应将配置属性序列化到 XML 中。Indicates whether the configuration property's parent configuration section should be queried at serialization time to determine whether the configuration property should be serialized into XML.

None 0

指示没有应用于该属性的选项。Indicates that no option applies to the property.

注解

在创建配置元素的过程中, 可以使用ConfigurationPropertyOptions枚举器以编程方式指定要应用的选项。During the creation of a configuration element, you use the ConfigurationPropertyOptions enumerator to programmatically specify the options to apply. 这些选项指示属性是否是必需的, 是集合键属性, 等等。如果未指定值, 则假定值为 None。These options indicate whether a property is required, is a collection key property, etc. If a value is not specified, the value is assumed to be None.

适用于

另请参阅