Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UInt32 Structure

Represents a 32-bit unsigned integer.

The UInt32 type is not CLS-compliant. The CLS-compliant alternative type is Int64. Int32 can be used when the original value is less than half of UInt32.MaxValue. For more information about CLS compliance, see What is the Common Language Specification.

For a list of all members of this type, see UInt32 Members.

System.Object
   System.ValueType
      System.UInt32

[Visual Basic]
<CLSCompliant(False)>
<Serializable>
Public Structure UInt32
   Implements IComparable, IFormattable, IConvertible
[C#]
[CLSCompliant(false)]
[Serializable]
public struct UInt32 : IComparable, IFormattable, IConvertible
[C++]
[CLSCompliant(false)]
[Serializable]
public __value struct UInt32 : public IComparable, IFormattable,
   IConvertible

[JScript] In JScript, you can use the structures in the .NET Framework, but you cannot define your own.

Thread Safety

This type is safe for multithreaded operations.

Remarks

The UInt32 value type represents unsigned integers with values ranging from 0 to 4,294,967,295.

UInt32 provides methods to compare instances of this type, convert the value of an instance to its String representation, and convert the String representation of a number to an instance of this type.

For information about how format specification codes control the String representation of value types, see Formatting Overview.

This type implements interfaces IComparable, IFormattable, and IConvertible. Use the Convert class for conversions instead of this type's explicit interface member implementation of IConvertible.

Requirements

Namespace: System

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

Assembly: Mscorlib (in Mscorlib.dll)

See Also

UInt32 Members | System Namespace | Int32

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft