PriorityQueue<TElement,TPriority>.EnsureCapacity(Int32) Methode

Definitie

Zorgt ervoor dat de PriorityQueue<TElement,TPriority> items kunnen bevatten capacity zonder verdere uitbreiding van de back-upopslag.

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

Parameters

capacity
Int32

De minimale capaciteit die moet worden gebruikt.

Retouren

De huidige capaciteit van de PriorityQueue<TElement,TPriority>.

Uitzonderingen

De opgegeven capacity waarde is negatief.

Van toepassing op