FacebookHelper.WriteAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Schreibt eine HTTP-Antwortnutzlast.
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, in die geschrieben werden soll.
- code
- HttpStatusCode
Der anzuwendende Statuscode.
- text
- String
Der zu schreibende Text.
- encoding
- Encoding
Die Codierung für den Text.
- cancellationToken
- CancellationToken
Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um Nachricht vom Abbruch zu empfangen.
Gibt zurück
Eine Aufgabe, die die auszuführende Arbeit in der Warteschlange darstellt.
Ausnahmen
response, textoder encoding ist NULL.