Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CollectionsUtil::CreateCaseInsensitiveHashtable Method (Int32)

 

Creates a new case-insensitive instance of the Hashtable class with the specified initial capacity.

Namespace:   System.Collections.Specialized
Assembly:  System (in System.dll)

public:
static Hashtable^ CreateCaseInsensitiveHashtable(
	int capacity
)

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
Return to top
Show:
© 2017 Microsoft