Interaction Workspace 8.0.0 .NET Developer's Guide and API Reference
TryGetValue<(Of <(TKey, TValue>)>) Method (dictionary, key)
Namespaces ► Genesyslab.Desktop.Infrastructure ► Extensions ► TryGetValue<(Of <(TKey, TValue>)>)(IDictionary<(Of <(TKey, TValue>)>), TKey)
Tries to get the value for a specified key.
Declaration Syntax

C# | Visual Basic | Visual C++

    public static TValue TryGetValue<TKey, TValue>(
    	this IDictionary<TKey, TValue> dictionary,
    	TKey key
    )
    where TValue : class

    <ExtensionAttribute> _
    Public Shared Function TryGetValue(Of TKey, TValue As Class) ( _
    	dictionary As IDictionary(Of TKey, TValue), _
    	key As TKey _
    ) As TValue

    [ExtensionAttribute]
    public:
    generic<typename TKey, typename TValue>
    where TValue : ref class
    static TValue TryGetValue(
    	IDictionary<TKey, TValue>^ dictionary,
    	TKey key
    )

Generic Template Parameters

TKey
  The type of the key.
TValue
  The type of the value.

Parameters

dictionary (IDictionary<(Of <(TKey, TValue>)>))
  The dictionary.

key (TKey)
  The key.

Return Value
The value for a specified key.

Assembly: Genesyslab.Desktop.Infrastructure (Module: Genesyslab.Desktop.Infrastructure) Version: 8.0.2.15 (8.0.002.15)