ConfigurationElement.SetPropertyValue Method
.NET Framework 4.6 and 4.5
Sets a property to the specified value.
Namespace: System.Configuration
Assembly: System.Configuration (in System.Configuration.dll)
protected void SetPropertyValue( ConfigurationProperty prop, Object value, bool ignoreLocks )
Parameters
- prop
- Type: System.Configuration.ConfigurationProperty
The element property to set.
- value
- Type: System.Object
The value to assign to the property.
- ignoreLocks
- Type: System.Boolean
true if the locks on the property should be ignored; otherwise, false.
| Exception | Condition |
|---|---|
| ConfigurationErrorsException | Occurs if the element is read-only or ignoreLocks is true but the locks cannot be ignored. |
Show: