GraphPathSerializationDictionary.Item (Propiedad)

Obtiene o establece el elemento que tiene la clave especificada.

Espacio de nombres:  Microsoft.VisualStudio.GraphModel
Ensamblado:  Microsoft.VisualStudio.GraphModel (en Microsoft.VisualStudio.GraphModel.dll)

Sintaxis

'Declaración
Public Default Property Item ( _
    key As String _
) As String
public string this[
    string key
] { get; set; }
public:
virtual property String^ default[String^ key] {
    String^ get (String^ key) sealed;
    void set (String^ key, String^ value) sealed;
}
abstract Item : string with get, set
override Item : string with get, set
JScript no admite propiedades indizadas.

Parámetros

  • key
    Tipo: System.String
    La clave del elemento que se va a obtener o establecer.

Valor de propiedad

Tipo: System.String
El elemento que tiene la clave especificada.

Implementaciones

IDictionary<TKey, TValue>.Item

Excepciones

Excepción Condición
ArgumentNullException

key es NULL.

KeyNotFoundException

La propiedad se recupera y de clave no se encuentra.

NotSupportedException

La propiedad es determinada y el System.Collections.Generic.IDictionary es de sólo lectura

Seguridad de .NET Framework

Vea también

Referencia

GraphPathSerializationDictionary Clase

Microsoft.VisualStudio.GraphModel (Espacio de nombres)