UIntPtr.ToUInt32 Method
.NET Framework 1.1
Converts the value of this instance to a 32-bit unsigned integer.
The UIntPtr type is not CLS-compliant. The CLS-compliant alternative type is IntPtr. For more information about CLS compliance, see What is the Common Language Specification.
[Visual Basic] Public Function ToUInt32() As UInt32 [C#] public uint ToUInt32(); [C++] public: unsigned int ToUInt32(); [JScript] public function ToUInt32() : UInt32;
Return Value
A 32-bit unsigned integer equal to the value of this instance.
Exceptions
| Exception Type | Condition |
|---|---|
| OverflowException | On a 64-bit platform, the value of this instance is too large to represent as a 32-bit unsigned integer. |
Remarks
An exception is only thrown if the value of value requires more bits than the current platform supports.
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