This documentation is archived and is not being maintained.

UInt32.GetHashCode Method

Returns the hash code for this instance.

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.

[Visual Basic]
Overrides Public Function GetHashCode() As Integer
[C#]
public override int GetHashCode();
[C++]
public: int GetHashCode();
[JScript]
public override function GetHashCode() : int;

Return Value

A 32-bit signed integer hash code.

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

See Also

UInt32 Structure | UInt32 Members | System Namespace

Show: