Name
Hashtable.ContainsValue Method
Class
System.Collections.Hashtable
Syntax
hashtablevariable
.ContainsValue(Value
)
-
Value
Use: Required
Data Type: Object
The value to search for among the hash table entries
Return Value
A Boolean indicating whether the value exists
(True
) or not (False
)
Description
Indicates whether a given value is contained in the hash table
Programming Tips and Gotchas
ContainsValue is intended to determine whether a value exists in the hash table; it is not designed to indicate the key belonging to a particular value or to determine whether multiple occurrences of a particular value exist.
Get VB .NET Language in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.