Hashtable.hcp 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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)
。