Share via


InputFormatterResult.SuccessAsync(Object) Method

Definition

Returns a Task that on completion provides an InputFormatterResult indicating the ReadAsync(InputFormatterContext) operation was successful.

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)

Parameters

model
Object

The deserialized Object.

Returns

A Task that on completion provides an InputFormatterResult indicating the ReadAsync(InputFormatterContext) operation succeeded i.e. with HasErrorfalse.

Applies to