共用方式為


AsyncQueue<T>.OnEnqueued(T, Boolean) 方法

定義

加入佇列值時叫用。

protected:
 virtual void OnEnqueued(T value, bool alreadyDispatched);
protected:
 virtual void OnEnqueued(T value, bool alreadyDispatched);
 virtual void OnEnqueued(T value, bool alreadyDispatched);
protected virtual void OnEnqueued (T value, bool alreadyDispatched);
abstract member OnEnqueued : 'T * bool -> unit
override this.OnEnqueued : 'T * bool -> unit
Protected Overridable Sub OnEnqueued (value As T, alreadyDispatched As Boolean)

參數

value
T

加入佇列的值。

alreadyDispatched
Boolean

true 如果專案會因為清除佇列已經等候專案而略過佇列,則為 ; false 如果項目實際上已新增至佇列,則為 。

適用於