Share via


AbstractDictionary.ContainsKey Method

This element is introduced in Windows PowerShell 5.0.

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

Usage

'Usage
Dim instance As AbstractDictionary(Of TKey, TVal)
Dim key As TKey
Dim returnValue As Boolean

returnValue = instance.ContainsKey(key)

Syntax

'Declaration
Public Overridable Function ContainsKey ( _
    key As TKey _
) As Boolean
public virtual bool ContainsKey (
    TKey key
)
public:
virtual bool ContainsKey (
    TKey key
)
public boolean ContainsKey (
    TKey key
)
public function ContainsKey (
    key : TKey
) : boolean

Parameters

  • key

Return Value

Returns Boolean.

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

AbstractDictionary Generic Class
AbstractDictionary Members
Microsoft.OneGet.Utility.Collections Namespace