FacebookHelper.WriteAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Schrijft een HTTP-responspayload.
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
Parameters
- response
- HttpResponse
De HTTP-respons om naartoe te schrijven.
- code
- HttpStatusCode
De statuscode om toe te passen.
- text
- String
De tekst die geschreven moet worden.
- encoding
- Encoding
De codering van de tekst.
- cancellationToken
- CancellationToken
Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.
Retouren
Een taak die het werk vertegenwoordigt dat in de wachtrij staat om uit te voeren.
Uitzonderingen
response, textof encoding is null.