Partager via


IDictionary.Contains Method

Determines whether the IDictionary object contains an item with the specified key.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)

Syntax

public bool Contains (
         Object key
)

Parameters

  • key
    The key to locate in the IDictionary object.

Return Value

true if the specified Object was found in the IDictionary collection; otherwise, false.

Version Information

Available in the .NET Micro Framework version 4.1 and 4.2.

See Also

Reference

IDictionary Interface
IDictionary Members
System.Collections Namespace