Export (0) Print
Expand All

Hashtable Methods

The methods of the Hashtable class are listed here. For a complete list of Hashtable class members, see the Hashtable Members topic.

Public Methods

public methodAdd

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Removes all elements from the Hashtable.
public methodClone

Supported by the .NET Compact Framework.

Creates a shallow copy of the Hashtable.
public methodContains

Supported by the .NET Compact Framework.

Determines whether the Hashtable contains a specific key.
public methodContainsKey

Supported by the .NET Compact Framework.

Determines whether the Hashtable contains a specific key.
public methodContainsValue

Supported by the .NET Compact Framework.

Determines whether the Hashtable contains a specific value.
public methodCopyTo

Supported by the .NET Compact Framework.

Copies the Hashtable elements to a one-dimensional Array instance at the specified index.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetEnumerator

Supported by the .NET Compact Framework.

Returns an IDictionaryEnumerator that can iterate through the Hashtable.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetObjectData Implements the ISerializable interface and returns the data needed to serialize the Hashtable.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodOnDeserialization Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.
public methodRemove

Supported by the .NET Compact Framework.

Removes the element with the specified key from the Hashtable.
public methodstatic (Shared in Visual Basic)Synchronized

Supported by the .NET Compact Framework.

Returns a synchronized (thread-safe) wrapper for the Hashtable.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodGetHash

Supported by the .NET Compact Framework.

Returns the hash code for the specified key.
protected methodKeyEquals

Supported by the .NET Compact Framework.

Compares a specific Object with a specific key in the Hashtable.
protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

Explicit Interface Implementations

IEnumerable.GetEnumerator Returns an IEnumerator that can iterate through the Hashtable.

See Also

Hashtable Class | System.Collections Namespace

Show:
© 2014 Microsoft