InputFormatterResult.SuccessAsync(Object) 方法

定义

返回一个 , Task 该值在完成后提供一个 InputFormatterResult 指示 ReadAsync(InputFormatterContext) 操作已成功的 。

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)

参数

model
Object

反序列化的 Object

返回

完成后 Task 的 一个 ,它提供一个 InputFormatterResult ,指示 ReadAsync(InputFormatterContext) 操作成功,即使用 HasErrorfalse

适用于