Initializes a new instance of the Dictionary<(Of <(<'TKey, TValue>)>)> class that is empty, has the specified initial capacity, and uses the default equality comparer for the key type.

Namespace: System.Collections.ObjectModel
Assembly: Elysium (in Elysium.dll) Version: 2.0.976.4 (2.0.976.4)

Syntax

C#
public ObservableDictionary(
	int capacity
)
Visual Basic
Public Sub New ( 
	capacity As Integer
)

Parameters

capacity
Type: System..::..Int32
The initial number of elements that the Dictionary<(Of <(<'TKey, TValue>)>)> can contain.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptioncapacity is less than 0.

See Also