Share via


TypedResults.UnprocessableEntity 方法

定義

多載

UnprocessableEntity()

Status422UnprocessableEntity產生回應。

UnprocessableEntity<TValue>(TValue)

Status422UnprocessableEntity產生回應。

UnprocessableEntity()

public static Microsoft.AspNetCore.Http.HttpResults.UnprocessableEntity UnprocessableEntity ();
static member UnprocessableEntity : unit -> Microsoft.AspNetCore.Http.HttpResults.UnprocessableEntity
Public Shared Function UnprocessableEntity () As UnprocessableEntity

傳回

為回應建立 UnprocessableEntity 的 。

適用於

UnprocessableEntity<TValue>(TValue)

public static Microsoft.AspNetCore.Http.HttpResults.UnprocessableEntity<TValue> UnprocessableEntity<TValue> (TValue? error);
static member UnprocessableEntity : 'Value -> Microsoft.AspNetCore.Http.HttpResults.UnprocessableEntity<'Value>
Public Shared Function UnprocessableEntity(Of TValue) (error As TValue) As UnprocessableEntity(Of TValue)

類型參數

TValue

將 JSON 序列化至回應本文的物件類型。

參數

error
TValue

要包含在 HTTP 回應本文中的值。

傳回

為回應建立 UnprocessableEntity<TValue> 的 。

適用於