Share via


GraphPathSerializationDictionary.TryGetValue Method

Gets the value associated with the specified key.

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
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

Parameters

  • key
    Type: String

    The key whose value to obtain.

  • value
    Type: String%

    When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Return Value

Type: Boolean
True if the object that implements System.Collections.Generic.IDictionary contains an element that has the specified key; otherwise, false.

Implements

IDictionary.TryGetValue(UTP, UTP)

Exceptions

Exception Condition
ArgumentNullException

key is null.

.NET Framework Security

See Also

Reference

GraphPathSerializationDictionary Class

Microsoft.VisualStudio.GraphModel Namespace