ConfigurationElement::SetPropertyValue Method (ConfigurationProperty^, Object^, Boolean)
.NET Framework (current version)
Sets a property to the specified value.
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. |
.NET Framework
Available since 2.0
Available since 2.0
Show: