Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ConfigurationElement::SetPropertyValue Method (ConfigurationProperty^, Object^, Boolean)

 

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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft