Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Convert.ToBoolean Method (Int32)

.NET Framework 1.1

Converts the value of the specified 32-bit signed integer to an equivalent Boolean value.

[Visual Basic]
Overloads Public Shared Function ToBoolean( _
   ByVal value As Integer _
) As Boolean
public static bool ToBoolean(
 int value
public: static bool ToBoolean(
 int value
public static function ToBoolean(
   value : int
) : Boolean;


A 32-bit signed integer.

Return Value

true if value is not zero; otherwise, false.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Convert Class | Convert Members | System Namespace | Convert.ToBoolean Overload List | Int32

© 2015 Microsoft