PriorityQueue<TElement,TPriority>.EnqueueRange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EnqueueRange(IEnumerable<ValueTuple<TElement,TPriority>>) |
Enqueues a sequence of element-priority pairs to the PriorityQueue<TElement,TPriority>. |
EnqueueRange(IEnumerable<TElement>, TPriority) |
Enqueues a sequence of elements pairs to the PriorityQueue<TElement,TPriority>, all associated with the specified priority. |
EnqueueRange(IEnumerable<ValueTuple<TElement,TPriority>>)
- Source:
- PriorityQueue.cs
- Source:
- PriorityQueue.cs
- Source:
- PriorityQueue.cs
Enqueues a sequence of element-priority pairs to the PriorityQueue<TElement,TPriority>.
public:
void EnqueueRange(System::Collections::Generic::IEnumerable<ValueTuple<TElement, TPriority>> ^ items);
public void EnqueueRange (System.Collections.Generic.IEnumerable<(TElement Element, TPriority Priority)> items);
member this.EnqueueRange : seq<ValueTuple<'Element, 'Priority>> -> unit
Public Sub EnqueueRange (items As IEnumerable(Of ValueTuple(Of TElement, TPriority)))
Parameters
- items
- IEnumerable<ValueTuple<TElement,TPriority>>
The pairs of elements and priorities to add to the queue.
Exceptions
The specified items
argument was null
.
Applies to
EnqueueRange(IEnumerable<TElement>, TPriority)
- Source:
- PriorityQueue.cs
- Source:
- PriorityQueue.cs
- Source:
- PriorityQueue.cs
Enqueues a sequence of elements pairs to the PriorityQueue<TElement,TPriority>, all associated with the specified priority.
public:
void EnqueueRange(System::Collections::Generic::IEnumerable<TElement> ^ elements, TPriority priority);
public void EnqueueRange (System.Collections.Generic.IEnumerable<TElement> elements, TPriority priority);
member this.EnqueueRange : seq<'Element> * 'Priority -> unit
Public Sub EnqueueRange (elements As IEnumerable(Of TElement), priority As TPriority)
Parameters
- elements
- IEnumerable<TElement>
The elements to add to the queue.
- priority
- TPriority
The priority to associate with the new elements.
Exceptions
The specified elements
argument was null
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om