O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Hashtable.ContainsValue Method

Class

System.Collections.Hashtable

Syntax

                  hashtablevariable.ContainsValue(Value)
Value (required; 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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required