System.Collections.Hashtable: Method Members

The methods of System.Collections.Hashtable are listed below. For a list of all members, see the Hashtable Members list.

See Also: Inherited members from System.Object

Public Methods

Add(object, object)

Adds an element with the specified key and value into the Hashtable.

Clear()

Removes all elements from the Hashtable.

Clone() : object

Creates a shallow copy of the Hashtable.

Contains(object) : bool

Determines whether the Hashtable contains a specific key.

ContainsKey(object) : bool

Determines whether the Hashtable contains a specific key.

ContainsValue(object) : bool

Determines whether the Hashtable contains a specific value.

CopyTo(Array, int)

Copies the Hashtable elements to a one-dimensional Array instance at the specified index.

GetEnumerator() : IDictionaryEnumerator

Returns an IDictionaryEnumerator that iterates through the Hashtable.

GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the Hashtable.

OnDeserialization(object)

Implements the System.Runtime.Serialization.ISerializable interface and raises the deserialization event when the deserialization is complete.

Remove(object)

Removes the element with the specified key from the Hashtable.

static
Synchronized(Hashtable) : Hashtable

Returns a synchronized (thread-safe) wrapper for the Hashtable.

Protected Methods

GetHash(object) : int

Returns the hash code for the specified key.

KeyEquals(object, object) : bool

Compares a specific object with a specific key in the Hashtable.