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)

適用対象

こちらもご覧ください