Hashtable.comparer Proprietà

Definizione

Attenzione

Please use KeyComparer properties.

Attenzione

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

Ottiene o imposta l'oggetto IComparer da usare per 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

Valore della proprietà

Oggetto IComparer da usare per Hashtable.

Attributi

Eccezioni

La proprietà è impostata su un valore ma la tabella hash è stata creata mediante un'interfaccia IEqualityComparer.

Commenti

Il recupero del valore di questa proprietà è un'operazione O(1) .

Si applica a

Vedi anche