InputFormatterResult.Failure 方法

定义

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

返回

一个 InputFormatterResult ,指示 ReadAsync(InputFormatterContext) 操作失败,即使用 HasErrortrue

适用于