Hashtable
Represents a collection of key/value pairs that are organized based on the hash code of the key.To browse the .NET Framework source code for this type, see the Reference Source.
Gets the number of key/value pairs contained in the Hashtable.
Gets the IEqualityComparer to use for the Hashtable.
Gets a value indicating whether the Hashtable has a fixed size.
Gets a value indicating whether the Hashtable is read-only.
Gets a value indicating whether access to the Hashtable is synchronized (thread safe).
Gets or sets the value associated with the specified key.
Gets an ICollection containing the keys in the Hashtable.
Gets an object that can be used to synchronize access to the Hashtable.
Gets an ICollection containing the values in the Hashtable.
public Hashtable()
Initializes a new, empty instance of the Hashtable class using the default initial capacity, load factor, hash code provider, and comparer.
Initializes a new, empty instance of the Hashtable class using the specified initial capacity, and the default load factor, hash code provider, and comparer.
Initializes a new, empty instance of the Hashtable class using the specified initial capacity and load factor, and the default hash code provider and comparer.
Initializes a new, empty instance of the Hashtable class using the specified initial capacity, load factor, and IEqualityComparer object.
Initializes a new, empty instance of the Hashtable class using the default initial capacity and load factor, and the specified IEqualityComparer object.
Initializes a new, empty instance of the Hashtable class using the specified initial capacity and IEqualityComparer, and the default load factor.
Initializes a new instance of the Hashtable class by copying the elements from the specified dictionary to the new Hashtable object. The new Hashtable object has an initial capacity equal to the number of elements copied, and uses the default load factor, hash code provider, and comparer.
Initializes a new instance of the Hashtable class by copying the elements from the specified dictionary to the new Hashtable object. The new Hashtable object has an initial capacity equal to the number of elements copied, and uses the specified load factor, and the default hash code provider and comparer.
Initializes a new instance of the Hashtable class by copying the elements from the specified dictionary to a new Hashtable object. The new Hashtable object has an initial capacity equal to the number of elements copied, and uses the default load factor and the specified IEqualityComparer object.
Initializes a new instance of the Hashtable class by copying the elements from the specified dictionary to the new Hashtable object. The new Hashtable object has an initial capacity equal to the number of elements copied, and uses the specified load factor and IEqualityComparer object.
Returns a synchronized (thread-safe) wrapper for the Hashtable.
Adds an element with the specified key and value into the Hashtable.
Removes all elements from the Hashtable.
Creates a shallow copy of the Hashtable.
Determines whether the Hashtable contains a specific key.
Determines whether the Hashtable contains a specific key.
Determines whether the Hashtable contains a specific value.
Returns an IDictionaryEnumerator that iterates through the Hashtable.
Returns the hash code for the specified key.
Removes the element with the specified key from the Hashtable.