HttpResponse.OnCompleted 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
OnCompleted(Func<Task>) |
添加在响应发送到客户端后要调用的委托。 |
OnCompleted(Func<Object,Task>, Object) |
添加在响应发送到客户端后要调用的委托。 |
OnCompleted(Func<Task>)
- Source:
- HttpResponse.cs
- Source:
- HttpResponse.cs
- Source:
- HttpResponse.cs
添加在响应发送到客户端后要调用的委托。
public:
virtual void OnCompleted(Func<System::Threading::Tasks::Task ^> ^ callback);
public virtual void OnCompleted (Func<System.Threading.Tasks.Task> callback);
abstract member OnCompleted : Func<System.Threading.Tasks.Task> -> unit
override this.OnCompleted : Func<System.Threading.Tasks.Task> -> unit
Public Overridable Sub OnCompleted (callback As Func(Of Task))
参数
适用于
OnCompleted(Func<Object,Task>, Object)
- Source:
- HttpResponse.cs
- Source:
- HttpResponse.cs
- Source:
- HttpResponse.cs
添加在响应发送到客户端后要调用的委托。
public:
abstract void OnCompleted(Func<System::Object ^, System::Threading::Tasks::Task ^> ^ callback, System::Object ^ state);
public abstract void OnCompleted (Func<object,System.Threading.Tasks.Task> callback, object state);
abstract member OnCompleted : Func<obj, System.Threading.Tasks.Task> * obj -> unit
Public MustOverride Sub OnCompleted (callback As Func(Of Object, Task), state As Object)
参数
- state
- Object
要捕获并传递回委托的状态对象。