CollectionsUtil::CreateCaseInsensitiveHashtable Method (Int32)
.NET Framework (current version)
Creates a new case-insensitive instance of the Hashtable class with the specified initial capacity.
Assembly: System (in System.dll)
Parameters
- capacity
-
Type:
System::Int32
The approximate number of entries that the Hashtable can initially contain.
Return Value
Type: System.Collections::Hashtable^A new case-insensitive instance of the Hashtable class with the specified initial capacity.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | capacity is less than zero. |
Instead of using the CreateCaseInsensitiveHashtable method, use the Hashtable::Hashtable(Int32, IEqualityComparer^) constructor to create a case-insensitive Hashtable class.
Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 10
.NET Framework
Available since 1.1
Show: