TryDequeue Method

MNG Profiler

MNG.Direct Documentation


Item at the front of the queue or undefined if blocked.
TryDequeue Method
Attempts to pull an item from the front of the queue.
Syntax
'Declaration
 
Public Overridable Function TryDequeue( _
   ByRef item As T _
) As Boolean
'Usage
 
Dim instance As SignalConcurrentQueue(Of T)
Dim item As T
Dim value As Boolean
 
value = instance.TryDequeue(item)
public virtual bool TryDequeue( 
   out T item
)
public:
virtual bool TryDequeue( 
   [Out] T^ item
) 

Parameters

item
Item at the front of the queue or undefined if blocked.

Return Value

True if the item was successfully pulled; false if blocked.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also