Bagikan melalui


Queue<T>.TryDequeue(T) Metode

Definisi

Menghapus objek di awal Queue<T>, dan menyalinnya ke result parameter .

public:
 bool TryDequeue([Runtime::InteropServices::Out] T % result);
public bool TryDequeue (out T result);
member this.TryDequeue : 'T -> bool
Public Function TryDequeue (ByRef result As T) As Boolean

Parameter

result
T

Objek yang dihapus.

Mengembalikan

true jika objek berhasil dihapus; falseQueue<T> jika kosong.

Berlaku untuk