This documentation is archived and is not being maintained.

Convert.ToUInt64 Method (Boolean)

.NET Framework 1.1

Converts the value of the specified Boolean value to the equivalent 64-bit unsigned integer.

This method is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
<CLSCompliant(False)>
Overloads Public Shared Function ToUInt64( _
   ByVal value As Boolean _
) As UInt64
[C#]
[CLSCompliant(false)]
public static ulong ToUInt64(
 bool value
);
[C++]
[CLSCompliant(false)]
public: static unsigned __int64 ToUInt64(
 bool value
);
[JScript]
public
   CLSCompliant(false)
static function ToUInt64(
 value : Boolean
) : UInt64;

Parameters

value
A Boolean value.

Return Value

The number 1 if value is true; otherwise, 0.

Requirements

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.ToUInt64 Overload List

Show: