Share via


DictionaryExtensions.MatchKey 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 TKey

returnValue = DictionaryExtensions.MatchKey(dictionary, key)

Syntax

[ExtensionAttribute] 
public static TKey MatchKey<TKey,TValue> (
    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