InputFormatterResult.SuccessAsync(Object) Metodo

Definizione

Restituisce un oggetto Task che al completamento fornisce un InputFormatterResult indicatore che indica che l'operazione ReadAsync(InputFormatterContext) ha avuto esito positivo.

public:
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Mvc::Formatters::InputFormatterResult ^> ^ SuccessAsync(System::Object ^ model);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult> SuccessAsync (object model);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult> SuccessAsync (object? model);
static member SuccessAsync : obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult>
Public Shared Function SuccessAsync (model As Object) As Task(Of InputFormatterResult)

Parametri

model
Object

Elemento Object deserializzato.

Restituisce

Oggetto Task che al completamento fornisce un InputFormatterResult indicatore che indica che l'operazione ReadAsync(InputFormatterContext) ha avuto esito positivo, ad esempio con HasErrorfalse.

Si applica a