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
Dim dictionary As IDictionary(Of TKey, TValue)
Dim key As Object
Dim returnValue As TKey
returnValue = DictionaryExtensions.MatchKey(dictionary, key)
'Declaration
<ExtensionAttribute> _
Public Shared Function MatchKey(Of TKey, TValue) ( _
dictionary As IDictionary(Of TKey, TValue), _
key As Object _
) As TKey
[ExtensionAttribute]
public static TKey MatchKey<TKey,TValue> (
IDictionary<TKey,TValue> dictionary,
Object key
)
[ExtensionAttribute]
public:
generic<typename TKey, typename TValue>
static TKey MatchKey (
IDictionary<TKey, TValue>^ dictionary,
Object^ key
)
- TKey
- TValue
- dictionary
- key
Returns {0}.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
DictionaryExtensions Class
DictionaryExtensions Members
Microsoft.OneGet.Utility.Extensions Namespace