Name

IsNothing Function — Microsoft.VisualBasic.Information

Synopsis

IsNothing(expression)
expression required; any

Any variable or expression to be tested for a null object reference

Return Value

Boolean

Description

Determines whether expression evaluates to Nothing. The line:

If IsNothing(obj) Then

is equivalent to:

If obj Is Nothing Then

Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.