共用方式為


InputFormatterResult.Success(Object) 方法

定義

傳回 , InputFormatterResult 指出 ReadAsync(InputFormatterContext) 作業成功。

public:
 static Microsoft::AspNetCore::Mvc::Formatters::InputFormatterResult ^ Success(System::Object ^ model);
public static Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult Success (object model);
public static Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult Success (object? model);
static member Success : obj -> Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult
Public Shared Function Success (model As Object) As InputFormatterResult

參數

model
Object

已還原序列化的 Object

傳回

InputFormatterResult 表示作業成功,也就是使用 HasErrorfalseReadAsync(InputFormatterContext)

適用於