PriorityQueue<TElement,TPriority>.TryDequeue Método

Definição

Remove o elemento mínimo do e o PriorityQueue<TElement,TPriority>copia e sua prioridade associada aos element argumentos e priority .

public:
 bool TryDequeue([Runtime::InteropServices::Out] TElement % element, [Runtime::InteropServices::Out] TPriority % priority);
public bool TryDequeue (out TElement element, out TPriority priority);
member this.TryDequeue : 'Element * 'Priority -> bool
Public Function TryDequeue (ByRef element As TElement, ByRef priority As TPriority) As Boolean

Parâmetros

element
TElement

Quando esse método retorna, contém o elemento removido.

priority
TPriority

Quando esse método retorna, contém a prioridade associada ao elemento removido.

Retornos

true se o elemento for removido com êxito; false se o PriorityQueue<TElement,TPriority> estiver vazio.

Aplica-se a