InputFormatterResult Class

Definition

Result of a ReadAsync(InputFormatterContext) operation.

C#
public class InputFormatterResult
Inheritance
InputFormatterResult

Properties

HasError

Gets an indication whether the ReadAsync(InputFormatterContext) operation had an error.

IsModelSet

Gets an indication whether a value for the Model property was supplied.

Model

Gets the deserialized Object.

Methods

Failure()

Returns an InputFormatterResult indicating the ReadAsync(InputFormatterContext) operation failed.

FailureAsync()

Returns a Task that on completion provides an InputFormatterResult indicating the ReadAsync(InputFormatterContext) operation failed.

NoValue()

Returns an InputFormatterResult indicating the ReadAsync(InputFormatterContext) operation produced no value.

NoValueAsync()

Returns a Task that on completion provides an InputFormatterResult indicating the ReadAsync(InputFormatterContext) operation produced no value.

Success(Object)

Returns an InputFormatterResult indicating the ReadAsync(InputFormatterContext) operation was successful.

SuccessAsync(Object)

Returns a Task that on completion provides an InputFormatterResult indicating the ReadAsync(InputFormatterContext) operation was successful.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0