ReadOnlyDictionary<TKey,TValue>.IDictionary.Item[Object] Propiedad

Definición

Obtiene el elemento que tiene la clave especificada.

property System::Object ^ System::Collections::IDictionary::Item[System::Object ^] { System::Object ^ get(System::Object ^ key); void set(System::Object ^ key, System::Object ^ value); };
object System.Collections.IDictionary.Item[object key] { get; set; }
member this.System.Collections.IDictionary.Item(obj) : obj with get, set
 Property Item(key As Object) As Object Implements IDictionary.Item

Parámetros

key
Object

Clave del elemento que se va a obtener o establecer.

Valor de propiedad

Elemento que tiene la clave especificada.

Implementaciones

Excepciones

key es null.

Se establece la propiedad .

O bien

La propiedad se establece, key no existe en la colección y el diccionario tiene un tamaño fijo.

Comentarios

Este miembro es una implementación explícita de miembro de interfaz. Solo se puede usar cuando la ReadOnlyDictionary<TKey,TValue> instancia se convierte en una IDictionary interfaz.

Se aplica a