Compartilhar via


PriorityQueue<TElement,TPriority>.Enqueue(TElement, TPriority) Método

Definição

Adiciona o elemento especificado com prioridade associada ao PriorityQueue<TElement,TPriority>.

public:
 void Enqueue(TElement element, TPriority priority);
public void Enqueue (TElement element, TPriority priority);
member this.Enqueue : 'Element * 'Priority -> unit
Public Sub Enqueue (element As TElement, priority As TPriority)

Parâmetros

element
TElement

O elemento a ser adicionado ao PriorityQueue<TElement,TPriority>.

priority
TPriority

A prioridade com a qual associar o novo elemento.

Aplica-se a