DefaultSettingValueAttribute Constructor
Collapse the table of content
Expand the table of content

DefaultSettingValueAttribute Constructor

Note: This constructor is new in the .NET Framework version 2.0.

Initializes an instance of the DefaultSettingValueAttribute class.

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

public DefaultSettingValueAttribute (
	string value
)
public DefaultSettingValueAttribute (
	String value
)
public function DefaultSettingValueAttribute (
	value : String
)

Parameters

value

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.

Caution noteCaution

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2016 Microsoft