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 ,指示 ReadAsync(InputFormatterContext) 操作成功,即使用 HasErrorfalse

适用于