共用方式為


IValueTaskSource.OnCompleted 方法

定義

排程此 IValueTaskSource 的接續動作。

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);
abstract member 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

描述接續動作行為的旗標。

適用於