Hashtable.hcp 屬性

定義

警告

此 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); };
protected System.Collections.IHashCodeProvider hcp { get; set; }
[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.

適用於

另請參閱