AuthenticationHeaderValue.GetHashCode 方法

定义

充当 AuthenticationHeaderValue 对象的哈希函数。Serves as a hash function for an AuthenticationHeaderValue object.

public:
 override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

返回

Int32

当前对象的哈希代码。A hash code for the current object.

注解

哈希代码是在相等测试期间用于标识对象的数字值。A hash code is a numeric value that is used to identify an object during equality testing. 它还可用作集合中对象的索引。It can also serve as an index for an object in a collection.

GetHashCode方法适合在哈希算法和数据结构(如哈希表)中使用。The GetHashCode method is suitable for use in hashing algorithms and data structures such as a hash table.

适用于