Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

Hashtable.ContainsKey Method

Class

System.Collections.Hashtable

Syntax

Dim result As Boolean = hashtableVariable.ContainsKey(key)

key (required; any)

The key to search for among the hashtable entries

Description

The ContainsKey method indicates whether a given key is contained in the hashtable (true) or not (False).

Usage at a Glance

The Contains method is identical in functionality to the ContainsKey method.

See Also

Hashtable Class, Hashtable.ContainsValue Method

Категории