Sprache

FacebookHelper.WriteAsync Methode

Definition

Schreibt eine HTTP-Antwort-Nutzlast.

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

Parameter

response
HttpResponse

Die HTTP-Antwort zum Schreiben.

code
HttpStatusCode

Der Statuscode zur Anwendung.

text
String

Der zu schreibende Text.

encoding
Encoding

Die Kodierung des Textes.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Eine Aufgabe, die die auszuführende Arbeitswarteschlange darstellt.

Ausnahmen

response, textoder encoding ist NULL.

Gilt für: