Поделиться через


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.

Применяется к