Export (0) Print
Expand All

Hashtable Members

Hashtable overview

Public Constructors

public constructorHashtable Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the Hashtable class.

Public Properties

public propertyCount

Supported by the .NET Compact Framework.

Gets the number of key-and-value pairs contained in the Hashtable.
public propertyIsFixedSize

Supported by the .NET Compact Framework.

Gets a value indicating whether the Hashtable has a fixed size.
public propertyIsReadOnly

Supported by the .NET Compact Framework.

Gets a value indicating whether the Hashtable is read-only.
public propertyIsSynchronized

Supported by the .NET Compact Framework.

Gets a value indicating whether access to the Hashtable is synchronized (thread-safe).
public propertyItem Gets or sets the value associated with the specified key.

In C#, this property is the indexer for the Hashtable class.

public propertyKeys

Supported by the .NET Compact Framework.

Gets an ICollection containing the keys in the Hashtable.
public propertySyncRoot

Supported by the .NET Compact Framework.

Gets an object that can be used to synchronize access to the Hashtable.
public propertyValues

Supported by the .NET Compact Framework.

Gets an ICollection containing the values in the Hashtable.

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 Constructors

protected constructorHashtable Constructor Overloaded. Initializes a new instance of the Hashtable class.

Protected Properties

protected propertycomparer

Supported by the .NET Compact Framework.

Gets or sets the comparer to use for the Hashtable.
protected propertyhcp

Supported by the .NET Compact Framework.

Gets or sets the object that can dispense hash codes.

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