This documentation is archived and is not being maintained.

PrincipalPermission.GetHashCode Method

Gets a hash code for the PrincipalPermission object that is suitable for use in hashing algorithms and data structures such as a hash table.

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)

public override int GetHashCode ()
/** @attribute ComVisibleAttribute(false) */ 
public int GetHashCode ()
public override function GetHashCode () : int
Not applicable.

Return Value

A hash code for the current PrincipalPermission object.

The hash code for two instances of the same permission might be different, hence a hash code should not be used to compare two PrincipalPermission objects.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0