This documentation is archived and is not being maintained.

ConfigurationPropertyOptions Enumeration

Specifies the options to apply to a property.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

[FlagsAttribute]
public enum ConfigurationPropertyOptions

Member nameDescription
NoneIndicates that no option applies to the property.
IsDefaultCollectionIndicates that the property is a default collection.
IsRequiredIndicates that the property is required.
IsKeyIndicates that the property is a collection key.
IsTypeStringTransformationRequiredIndicates whether the type name for the configuration property requires transformation when it is serialized for an earlier version of the .NET Framework.
IsAssemblyStringTransformationRequiredIndicates whether the assembly name for the configuration property requires transformation when it is serialized for an earlier version of the .NET Framework.
IsVersionCheckRequiredIndicates 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.

During the creation of a configuration element, you use the ConfigurationPropertyOptions enumerator to programmatically specify the options to apply. 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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: