Hashtable.hcp Property

Definition

Caution

Please use EqualityComparer property.

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

Property Value

IHashCodeProvider

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