Hashtable Members
.NET Framework 2.0
Represents a collection of key/value pairs that are organized based on the hash code of the key.
The following tables list the members exposed by the Hashtable type.
(see also
Protected Constructors
)
Top
| Name | Description | |
|---|---|---|
| Hashtable | Overloaded. Initializes a new instance of the Hashtable class. |
(see also
Protected Properties
)
Top
| Name | Description | |
|---|---|---|
| Count | Gets the number of key/value pairs contained in the Hashtable. |
| IsFixedSize | Gets a value indicating whether the Hashtable has a fixed size. |
| IsReadOnly | Gets a value indicating whether the Hashtable is read-only. |
| IsSynchronized | Gets a value indicating whether access to the Hashtable is synchronized (thread safe). |
| Item | Gets or sets the value associated with the specified key. |
| Keys | Gets an ICollection containing the keys in the Hashtable. |
| SyncRoot | Gets an object that can be used to synchronize access to the Hashtable. |
| Values | Gets an ICollection containing the values in the Hashtable. |
| Name | Description | |
|---|---|---|
| comparer | Gets or sets the IComparer to use for the Hashtable. |
| EqualityComparer | Gets the IEqualityComparer to use for the Hashtable. |
| hcp | Gets or sets the object that can dispense hash codes. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Add | Adds an element with the specified key and value into the Hashtable. |
| Clear | Removes all elements from the Hashtable. |
| Clone | Creates a shallow copy of the Hashtable. |
| Contains | Determines whether the Hashtable contains a specific key. |
| ContainsKey | Determines whether the Hashtable contains a specific key. |
| ContainsValue | Determines whether the Hashtable contains a specific value. |
| CopyTo | Copies the Hashtable elements to a one-dimensional Array instance at the specified index. |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| GetEnumerator | Returns an IDictionaryEnumerator that iterates through the Hashtable. |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetObjectData | Implements the ISerializable interface and returns the data needed to serialize the Hashtable. |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| OnDeserialization | Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| Remove | Removes the element with the specified key from the Hashtable. |
| Synchronized | Returns a synchronized (thread safe) wrapper for the Hashtable. |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) |
| GetHash | Returns the hash code for the specified key. |
| KeyEquals | Compares a specific Object with a specific key in the Hashtable. |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| System.Collections.IEnumerable.GetEnumerator | Returns an enumerator that iterates through a collection. |