Hashtable Members
The following tables list the members exposed by the Hashtable type.
Public Constructors
Name | Description | |
---|---|---|
Hashtable | Overloaded. Initializes a new, empty instance of the Hashtable class. |
Public Properties
Name | Description | |
---|---|---|
Count | Gets the number of key/value pairs in the Hashtable. | |
GrowthFactor | Gets or sets the multiplier to use to increase the Hashtable size during a rehash. | |
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 the Hashtable is synchronized (thread safe). | |
Item | Gets or sets the value associated with the specified key. | |
Keys | Gets an ICollection that contains the keys in the Hashtable. | |
MaxLoadFactor | Gets or sets the load factor that results in a rehash with a greater number of buckets. | |
SyncRoot | Gets an object that can be used to synchronize access to the Hashtable. | |
Values | Gets an ICollection containing the values in the Hashtable. |
Public Methods
Name | Description | |
---|---|---|
Add | Adds an element that has the specified key and value into the Hashtable. | |
Clear | Removes all objects from the Hashtable. | |
Clone | Creates a shallow copy of the Hashtable. | |
Contains | Determines whether an element is in the Hashtable. | |
CopyTo | Copies the Hashtable elements to an existing one-dimensional Array starting at the specified array index. | |
Equals | (Inherited from Object.) | |
GetEnumerator | Returns an enumerator that iterates through the Hashtable. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
ReferenceEquals | (Inherited from Object.) | |
Remove | Removes the element that has the specified key from the Hashtable. | |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) |