Partager via


Hashtable.comparer Propriété

Définition

Attention

Please use KeyComparer properties.

Attention

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

Obtient ou définit le IComparer à utiliser pour 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

Valeur de propriété

IComparer à utiliser pour Hashtable.

Attributs

Exceptions

La propriété a une valeur, mais la table de hachage a été créée à l'aide d'un IEqualityComparer.

Remarques

La récupération de la valeur de cette propriété est une O(1) opération.

S’applique à

Voir aussi