Taal

FacebookHelper.WriteAsync Methode

Definitie

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.

Van toepassing op