NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Hashtable.Contains

Determines if the Hashtable contains a specific key.

[Visual Basic]
Overridable Public Function Contains( _
   ByVal key As Object _
) As Boolean
[C#]
public virtual bool Contains(
   object key
);
[C++]
public: virtual bool Contains(
   Object* key
);
[JScript]
public function Contains(
   key : Object
) : Boolean;

Parameters

key
The key to locate in the Hashtable.

Return Value

true if the Hashtable contains an entry with the specified key; otherwise, false.

Exceptions

Exception Type Condition
ArgumentNullException key is a null reference (in Visual Basic Nothing).

Remarks

This method can be overridden by a derived class.

This implementation is an O(1) operation.

This method implements the IDictionary interface. It behaves exactly as ContainsKey.

See Also

Hashtable Class | Hashtable Members | System.Collections Namespace | ContainsKey | IDictionary