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 Shared Function CreateCaseInsensitiveHashtable (
	capacity As Integer
) As Hashtable

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: