共用方式為


IHttpResponseFeature.OnCompleted(Func<Object,Task>, Object) 方法

定義

註冊在回應完成之後要叫用的回呼。 這是用於資源清除。

public:
 void OnCompleted(Func<System::Object ^, System::Threading::Tasks::Task ^> ^ callback, System::Object ^ state);
public void OnCompleted (Func<object,System.Threading.Tasks.Task> callback, object state);
abstract member OnCompleted : Func<obj, System.Threading.Tasks.Task> * obj -> unit
Public Sub OnCompleted (callback As Func(Of Object, Task), state As Object)

參數

callback
Func<Object,Task>

回應完成後要叫用的回呼。

state
Object

要傳入回呼的狀態。

適用於