Determines if the Hashtable contains a specific value.
[Visual Basic] Overridable Public Function ContainsValue( _ ByVal value As Object _ ) As Boolean [C#] public virtual bool ContainsValue( object value ); [C++] public: virtual bool ContainsValue( Object* value ); [JScript] public function ContainsValue( value : Object ) : Boolean;
true if the Hashtable contains an element with the specified value; otherwise, false.
This method can be overridden by a derived class.
The values of the elements of the Hashtable are compared to the specified value using the Equals method.
This method uses a linear search; therefore, the average execution time is proportional to the size of the Hashtable. That is, this implementation is an O(n) operation.
Hashtable Class | Hashtable Members | System.Collections Namespace | ContainsKey | Equals