System.Security.NamedPermissionSet.GetHashCode Method

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

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public override int GetHashCode ()

Returns

A hash code for the current System.Security.NamedPermissionSet object.

Remarks

The hash code for two instances of the same permission might differ, hence a hash code should not be used to compare two System.Security.NamedPermissionSet objects.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0