Delen via


GraphPathSerializationDictionary.TryGetValue Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

  • value
    Type: System.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: System.Boolean
True if the object that implements System.Collections.Generic.IDictionary contains an element that has the specified key; otherwise, false.

Implements

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

Exceptions

Exception Condition
ArgumentNullException

key is null.

.NET Framework Security

See Also

Reference

GraphPathSerializationDictionary Class

Microsoft.VisualStudio.GraphModel Namespace