When implemented by a class, determines whether the IDictionary contains an entry with the specified key.
[Visual Basic] Function Contains( _ ByVal key As Object _ ) As Boolean [C#] bool Contains( object key ); [C++] bool Contains( Object* key ) = 0; [JScript] function Contains( key : Object ) : Boolean;
true if the IDictionary contains an entry with the key; otherwise, false.
Exception Type | Condition |
---|---|
ArgumentNullException | key is a null reference object. |
IDictionary Interface | IDictionary Members | System.Collections Namespace