Bagikan melalui


Hashtable.comparer Properti

Definisi

Perhatian

Please use KeyComparer properties.

Perhatian

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

Mendapatkan atau mengatur IComparer untuk digunakan untuk 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

Nilai Properti

untuk IComparer digunakan untuk Hashtable.

Atribut

Pengecualian

Properti diatur ke nilai, tetapi tabel hash dibuat menggunakan IEqualityComparer.

Keterangan

Mengambil nilai properti ini adalah O(1) operasi.

Berlaku untuk

Lihat juga