DefaultSettingValueAttribute Constructor (String^)

 

Initializes an instance of the DefaultSettingValueAttribute class.

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

public:
DefaultSettingValueAttribute(
	String^ value
)

Parameters

value
Type: System::String^

A String that represents the default value for the property.

The supplied string must be a value that is compatible with the available serialization mechanism associated with the property type. For example, if the property is of type Color, then a value of "Azure" would be valid.

System_CAPS_cautionCaution

The default values specified by this attribute are stored as plain text in the resultant compiled .exe or .dll file. Therefore these default values are inherently insecure.

.NET Framework
Available since 2.0
Return to top
Show: