共用方式為


Hashtable.comparer 屬性

定義

警告

Please use KeyComparer properties.

警告

Hashtable.comparer has been deprecated. Use the KeyComparer properties instead.

取得或設定 IComparer 所使用的 Hashtable

protected:
 property System::Collections::IComparer ^ comparer { System::Collections::IComparer ^ get(); void set(System::Collections::IComparer ^ value); };
[System.Obsolete("Please use KeyComparer properties.")]
protected System.Collections.IComparer? comparer { get; set; }
[System.Obsolete("Hashtable.comparer has been deprecated. Use the KeyComparer properties instead.")]
protected System.Collections.IComparer? comparer { get; set; }
[System.Obsolete("Please use KeyComparer properties.")]
protected System.Collections.IComparer comparer { get; set; }
protected System.Collections.IComparer comparer { get; set; }
[<System.Obsolete("Please use KeyComparer properties.")>]
member this.comparer : System.Collections.IComparer with get, set
[<System.Obsolete("Hashtable.comparer has been deprecated. Use the KeyComparer properties instead.")>]
member this.comparer : System.Collections.IComparer with get, set
member this.comparer : System.Collections.IComparer with get, set
Protected Property comparer As IComparer

屬性值

IComparer 所使用的 Hashtable

屬性

例外狀況

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

備註

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

適用於

另請參閱