共用方式為


Hashtable.hcp 屬性

定義

警告

Please use EqualityComparer property.

警告

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

取得或設定可以分配雜湊程式碼的物件。

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

屬性值

物件,其可以分配雜湊程式碼。

屬性

例外狀況

屬性設為值,但使用 IEqualityComparer 建立雜湊資料表。

備註

擷取此屬性的值是作業 O(1)

適用於

另請參閱