Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

BitConverter.ToUInt32 Method

Returns a 32-bit unsigned integer converted from four bytes at a specified position in a byte array.

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

[Visual Basic]
Public Shared Function ToUInt32( _
   ByVal value() As Byte, _
   ByVal startIndex As Integer _
) As UInt32
public static uint ToUInt32(
 byte[] value,
 int startIndex
public: static unsigned int ToUInt32(
 unsigned char value __gc[],
 int startIndex
static function ToUInt32(
 value : Byte[],
 startIndex : int
) : UInt32;


An array of bytes.
The starting position within value.

Return Value

A 32-bit unsigned integer formed by four bytes beginning at startIndex.


Exception Type Condition
ArgumentNullException value is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException startIndex is less than zero or greater than the length of value minus 4.


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 | UInt32

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.