Export (0) Print
Expand All

BitConverter.GetBytes Method (UInt32)

.NET Framework 1.1

Returns the specified 32-bit unsigned integer value as an array of bytes.

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 GetBytes( _
   ByVal value As UInt32 _
) As Byte()
[C#]
[CLSCompliant(false)]
public static byte[] GetBytes(
 uint value
);
[C++]
[CLSCompliant(false)]
public: static unsigned char GetBytes(
 unsigned int value
)  __gc[];
[JScript]
public
   CLSCompliant(false)
static function GetBytes(
 value : UInt32
) : Byte[];

Parameters

value
The number to convert.

Return Value

An array of bytes with length 4.

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:
© 2014 Microsoft