DictionaryExtensions.GetByMatchedKey Method

This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.Utility.Extensions
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)

Usage

'Usage
Dim dictionary As IDictionary(Of TKey, TValue)
Dim key As Object
Dim returnValue As TValue

returnValue = DictionaryExtensions.GetByMatchedKey(dictionary, key)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetByMatchedKey(Of TKey, TValue) ( _
    dictionary As IDictionary(Of TKey, TValue), _
    key As Object _
) As TValue
[ExtensionAttribute] 
public static TValue GetByMatchedKey<TKey,TValue> (
    IDictionary<TKey,TValue> dictionary,
    Object key
)
[ExtensionAttribute] 
public:
generic<typename TKey, typename TValue>
static TValue GetByMatchedKey (
    IDictionary<TKey, TValue>^ dictionary, 
    Object^ key
)

GenericParameters

  • TKey
  • TValue

Parameters

  • dictionary
  • key

Return Value

Returns {0}.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

DictionaryExtensions Class
DictionaryExtensions Members
Microsoft.OneGet.Utility.Extensions Namespace