Convert.IsDBNull Method

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

Returns an indication whether the specified object is of type DBNull.

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

Syntax

Public Shared Function IsDBNull ( _
    value As Object _
) As Boolean
public static bool IsDBNull(
    Object value
)

Parameters

Return Value

Type: System..::.Boolean
true if value is of type DBNull; otherwise, false.

Remarks

The IsDBNull method tests whether the value parameter is equal to DBNull..::.Value. It is equivalent to the following code:

Return DBNull.Value.Equals(value)
return DBNull.Value.Equals(value);

Note

DBNull..::.Value is used to indicate a value that is missing. It is not equivalent to nullNothingnullptra null reference (Nothing in Visual Basic) or to String..::.Empty.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

Convert Class

System Namespace

DBNull