共用方式為


ManualResetValueTaskSourceCore<TResult>.OnCompleted 方法

定義

排程此作業的接續動作。

public:
 void OnCompleted(Action<System::Object ^> ^ continuation, System::Object ^ state, short token, System::Threading::Tasks::Sources::ValueTaskSourceOnCompletedFlags flags);
public void OnCompleted (Action<object?> continuation, object? state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags);
public void OnCompleted (Action<object> continuation, object state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags);
member this.OnCompleted : Action<obj> * obj * int16 * System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags -> unit
Public Sub OnCompleted (continuation As Action(Of Object), state As Object, token As Short, flags As ValueTaskSourceOnCompletedFlags)

參數

continuation
Action<Object>

作業完成時要叫用的接續。

state
Object

叫用時要傳遞至 continuation 的狀態物件。

token
Int16

提供給 ValueTask建構函式的不透明值。

flags
ValueTaskSourceOnCompletedFlags

描述接續行為的旗標。

適用於