Redigeeri

Jagamisviis:


Hashtable.hcp Property

Definition

Caution

Please use EqualityComparer property.

Caution

Hashtable.hcp has been deprecated. Use the EqualityComparer property instead.

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; }
[System.Obsolete("Hashtable.hcp has been deprecated. Use the EqualityComparer property instead.")]
protected System.Collections.IHashCodeProvider? hcp { get; set; }
[System.Obsolete("Please use EqualityComparer property.")]
protected System.Collections.IHashCodeProvider hcp { get; set; }
protected System.Collections.IHashCodeProvider hcp { get; set; }
[<System.Obsolete("Please use EqualityComparer property.")>]
member this.hcp : System.Collections.IHashCodeProvider with get, set
[<System.Obsolete("Hashtable.hcp has been deprecated. Use the EqualityComparer property instead.")>]
member this.hcp : System.Collections.IHashCodeProvider with get, set
member this.hcp : System.Collections.IHashCodeProvider with get, set
Protected Property hcp As IHashCodeProvider

Property Value

The object that can dispense hash codes.

Attributes

Exceptions

The property is set to a value, but the hash table was created using an IEqualityComparer.

Remarks

Retrieving the value of this property is an O(1) operation.

Applies to

See also