Compartir a través de


Hashtable.comparer Propiedad

Definición

Precaución

Please use KeyComparer properties.

Precaución

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

Obtiene o establece el IComparer que se utilizará para 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

Valor de propiedad

IComparer que se va a utilizar para Hashtable.

Atributos

Excepciones

La propiedad está establecida en un valor, pero la tabla hash se creó utilizando una interfaz IEqualityComparer.

Comentarios

Recuperar el valor de esta propiedad es una O(1) operación.

Se aplica a

Consulte también