SetPropertyValue Method

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:
© 2016 Microsoft