共用方式為


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

傳回

完成時提供的 ,表示作業成功,也就是 使用 HasErrorfalseReadAsync(InputFormatterContext)TaskInputFormatterResult

適用於