GetBytes Method (Int64)

BitConverter.GetBytes Method (Int64)

.NET Framework 1.1

Returns the specified 64-bit signed integer value as an array of bytes.

[Visual Basic]
Overloads Public Shared Function GetBytes( _
   ByVal value As Long _
) As Byte()
[C#]
public static byte[] GetBytes(
 long value
);
[C++]
public: static unsigned char GetBytes(
 __int64 value
)  __gc[];
[JScript]
public static function GetBytes(
   value : long
) : Byte[];

Parameters

value
The number to convert.

Return Value

An array of bytes with length 8.

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

See Also

BitConverter Class | BitConverter Members | System Namespace | BitConverter.GetBytes Overload List

Show:
© 2016 Microsoft