Dela via


InputFormatterResult.Failure Method

Definition

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

public:
 static Microsoft::AspNetCore::Mvc::Formatters::InputFormatterResult ^ Failure();
public static Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult Failure ();
static member Failure : unit -> Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult
Public Shared Function Failure () As InputFormatterResult

Returns

An InputFormatterResult indicating the ReadAsync(InputFormatterContext) operation failed i.e. with HasErrortrue.

Applies to