Nullable(T) Constructor
Collapse the table of content
Expand the table of content

Nullable(Of T) Constructor

[ 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 Nullable(Of T) structure to the specified value.

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

'Declaration
Public Sub New ( _
	value As T _
)

Parameters

value
Type: T
A value type.

The Nullable(Of T) constructor initializes the HasValue property of the new Nullable(Of T) object to true, and the Value property to the value of the value parameter.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft