Sdílet prostřednictvím


ExpandoObject.IDictionary<String, Object>.ContainsKey Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Determines whether the dictionary contains the specified key.

Namespace:  System.Dynamic
Assembly:  System.Core (in System.Core.dll)

Syntax

'Declaration
Private Function ContainsKey ( _
    key As String _
) As Boolean Implements IDictionary(Of String, Object).ContainsKey
bool IDictionary<string, Object>.ContainsKey(
    string key
)

Parameters

Return Value

Type: System.Boolean
true if the dictionary contains an element that has the specified key; otherwise, false.

Implements

IDictionary<TKey, TValue>.ContainsKey(TKey)

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.