OrderedDictionary<TKey,TValue>.EnsureCapacity(Int32) Metod

Definition

Ser till att ordlistan kan innehålla upp till capacity poster utan att ändra storlek.

public:
 int EnsureCapacity(int capacity);
public int EnsureCapacity(int capacity);
member this.EnsureCapacity : int -> int
Public Function EnsureCapacity (capacity As Integer) As Integer

Parametrar

capacity
Int32

Önskad minsta kapacitet för ordlistan. Den faktiska kapacitet som tillhandahålls kan vara större.

Returer

Ordlistans nya kapacitet.

Undantag

capacity är negativ.

Gäller för