FacebookHelper.WriteAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
寫入 HTTP 回應有效載荷。
public static System.Threading.Tasks.Task WriteAsync(Microsoft.AspNetCore.Http.HttpResponse response, System.Net.HttpStatusCode code, string text, System.Text.Encoding encoding, System.Threading.CancellationToken cancellationToken);
static member WriteAsync : Microsoft.AspNetCore.Http.HttpResponse * System.Net.HttpStatusCode * string * System.Text.Encoding * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function WriteAsync (response As HttpResponse, code As HttpStatusCode, text As String, encoding As Encoding, cancellationToken As CancellationToken) As Task
參數
- response
- HttpResponse
要寫入的 HTTP 回應。
- code
- HttpStatusCode
申請狀態碼。
- text
- String
要寫的文字。
- encoding
- Encoding
文字的編碼。
- cancellationToken
- CancellationToken
一種可被其他物件或執行緒用來接收取消通知的取消標記。
傳回
工作,表示要執行的工作佇列。
例外狀況
response, , text, encoding 為空。