TreeView for WinForms | ComponentOne
C1.Win.TreeView Namespace / PropertyPath Class / TryGetValue Method
The key whose value to get.
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.

In This Topic
    TryGetValue Method (PropertyPath)
    In This Topic
    Gets the value associated with the specified key.
    Syntax
    'Declaration
     
    
    Public Function TryGetValue( _
       ByVal key As Integer, _
       ByRef value As String _
    ) As Boolean
    public bool TryGetValue( 
       int key,
       out string value
    )

    Parameters

    key
    The key whose value to get.
    value
    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

    true if the object that implements C1.Win.Collections.ObjectModel.ObservableDictionary<TKey,TValue> contains an element with the specified key; otherwise, false.
    See Also