Lingua

FacebookHelper.WriteAsync Metodo

Definizione

Scrive un payload di risposta 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

Parametri

response
HttpResponse

La risposta HTTP su cui scrivere.

code
HttpStatusCode

Il codice di stato per fare domanda.

text
String

Il testo da scrivere.

encoding
Encoding

La codifica per il testo.

cancellationToken
CancellationToken

Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.

Valori restituiti

Attività che rappresenta il lavoro in coda da eseguire.

Eccezioni

response, texto encoding è null.

Si applica a