Hashtable.hcp Hashtable.hcp Hashtable.hcp Hashtable.hcp Property

定义

警告

此 API 现已过时。

获取或设置可分配哈希代码的对象。Gets or sets the object that can dispense hash codes.

protected:
 property System::Collections::IHashCodeProvider ^ hcp { System::Collections::IHashCodeProvider ^ get(); void set(System::Collections::IHashCodeProvider ^ value); };
[System.Obsolete("Please use EqualityComparer property.")]
protected System.Collections.IHashCodeProvider hcp { get; set; }
member this.hcp : System.Collections.IHashCodeProvider with get, set
Protected Property hcp As IHashCodeProvider

属性值

可分配哈希代码的对象。The object that can dispense hash codes.

异常

该属性被设置为某个值,但哈希表是使用 IEqualityComparer 创建的。The property is set to a value, but the hash table was created using an IEqualityComparer.

注解

检索此属性的值的运算复杂度为 O(1)。Retrieving the value of this property is an O(1) operation.

适用于

另请参阅