DefaultValueAttribute Constructor (Type, String)

DefaultValueAttribute Constructor (Type, String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the DefaultValueAttribute class, converting the specified value to the specified type, and using an invariant culture as the translation context.

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

'Declaration
Public Sub New ( _
	type As Type, _
	value As String _
)

Parameters

type
Type: System.Type
A Type that represents the type to convert the value to.
value
Type: System.String
A String that can be converted to the type using the TypeConverter for the type and the U.S. English culture.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft