InputFormatterResult.Failure Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an InputFormatterResult indicating the ReadAsync(InputFormatterContext) operation failed.
public:
static Microsoft::AspNetCore::Mvc::Formatters::InputFormatterResult ^ Failure();
C#
public static Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult Failure ();
static member Failure : unit -> Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult
Public Shared Function Failure () As InputFormatterResult
An InputFormatterResult indicating the ReadAsync(InputFormatterContext)
operation failed i.e. with HasErrortrue
.
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 |