Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EmitClear Property

ConfigurationElementCollection.EmitClear Property

Gets or sets a value that specifies whether the collection has been cleared.

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

public bool EmitClear { get; set; }

Property Value

Type: System.Boolean
true if the collection has been cleared; otherwise, false. The default is false.

ExceptionCondition
ConfigurationErrorsException

The configuration is read-only.

Setting the EmitClear property to true causes a <clear> directive to be written to the configuration file when the collection is serialized.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft