Sdílet prostřednictvím


Hashtable.comparer Vlastnost

Definice

Upozornění

Please use KeyComparer properties.

Upozornění

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

Získá nebo nastaví IComparer na použití pro 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

Hodnota vlastnosti

Slouží IComparer k použití pro Hashtable.

Atributy

Výjimky

Vlastnost je nastavena na hodnotu, ale hashovací tabulka byla vytvořena pomocí IEqualityComparer.

Poznámky

Načtení hodnoty této vlastnosti je O(1) operace.

Platí pro

Viz také