AsyncQueue<T>.OnEnqueued Method

Occurs when a value is enqueued.

Namespace:  Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Syntax

'Declaration
Protected Overridable Sub OnEnqueued ( _
    value As T, _
    alreadyDispatched As Boolean _
)
protected virtual void OnEnqueued(
    T value,
    bool alreadyDispatched
)
protected:
virtual void OnEnqueued(
    T value, 
    bool alreadyDispatched
)
abstract OnEnqueued : 
        value:'T * 
        alreadyDispatched:bool -> unit  
override OnEnqueued : 
        value:'T * 
        alreadyDispatched:bool -> unit
protected function OnEnqueued(
    value : T, 
    alreadyDispatched : boolean
)

Parameters

  • value
    Type: T

    The value.

  • alreadyDispatched
    Type: System.Boolean

    true if the item will skip the queue because a dequeuer was already waiting for an item, false if the item was actually added to the queue.

.NET Framework Security

See Also

Reference

AsyncQueue<T> Class

Microsoft.VisualStudio.Threading Namespace