GraphPathSerializationDictionary.TryGetValue (Método)

Obtiene el valor asociado a la clave especificada.

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

Sintaxis

'Declaración
Public Function TryGetValue ( _
    key As String, _
    <OutAttribute> ByRef value As String _
) As Boolean
public bool TryGetValue(
    string key,
    out string value
)
public:
virtual bool TryGetValue(
    String^ key, 
    [OutAttribute] String^% value
) sealed
abstract TryGetValue : 
        key:string * 
        value:string byref -> bool 
override TryGetValue : 
        key:string * 
        value:string byref -> bool 
public final function TryGetValue(
    key : String, 
    value : String
) : boolean

Parámetros

  • value
    Tipo: System.String%
    Cuando se devuelve este método, es el valor asociado a la clave especificada, si se encuentra la clave; de lo contrario, es el valor predeterminado para el tipo del parámetro de valor.Este parámetro se pasa sin inicializar.

Valor devuelto

Tipo: System.Boolean
True si el objeto que implementa System.Collections.Generic.IDictionary contiene un elemento con la clave especificada; de lo contrario, false.

Implementaciones

IDictionary<TKey, TValue>.TryGetValue(TKey, TValue%)

Excepciones

Excepción Condición
ArgumentNullException

key es NULL.

Seguridad de .NET Framework

Vea también

Referencia

GraphPathSerializationDictionary Clase

Microsoft.VisualStudio.GraphModel (Espacio de nombres)