Constructors: NewHashtable2

NewHashtable2

Initializes a new, empty instance of the Hashtable class using the specified initial capacity, load factor, and IEqualityComparer object.



 Public Function NewHashtable2(
	  ByVal Capacity As Long,
	  Optional ByVal LoadFactor As Single = 1 !,
	  Optional ByVal EqualityComparer As IEqualityComparer ) As Hashtable

Parameters

Capacity
[ByVal] Long. The approximate number of elements that the Hashtable object can initially contain.
LoadFactor
[ByVal] Optional. Single. A number in the range from 0.1 through 1.0 that is multiplied by the default value which provides the best performance. The result is the maximum ratio of elements to buckets.  

Default: 1 !

EqualityComparer
[ByVal] Optional. IEqualityComparer. The IEqualityComparer object that defines the hash code provider and the comparer to use with the Hashtable object.

Return Values

Hashtable -  A new Hashtable object with the specified parameters.

See Also

Project CorLib Overview

Class Constructors Overview

IEqualityComparer

Hashtable