Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Immediately dequeues the element from the head of the queue if one is available, otherwise returns without an element.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Function TryDequeue ( _
<OutAttribute> ByRef value As T _
) As Boolean
public bool TryDequeue(
out T value
)
public:
bool TryDequeue(
[OutAttribute] T% value
)
member TryDequeue :
value:'T byref -> bool
public function TryDequeue(
value : T
) : boolean
Parameters
value
Type: T%The element from the head of the queue, or the default type if the queue is empty.
Return Value
Type: System.Boolean
true if an element was dequeued, false if the queue was empty.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.