TypedResults.UnprocessableEntity Method
Definition
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.
Overloads
UnprocessableEntity() |
Produces a Status422UnprocessableEntity response. |
UnprocessableEntity<TValue>(TValue) |
Produces a Status422UnprocessableEntity response. |
UnprocessableEntity()
- Source:
- TypedResults.cs
Produces a Status422UnprocessableEntity response.
public static Microsoft.AspNetCore.Http.HttpResults.UnprocessableEntity UnprocessableEntity ();
static member UnprocessableEntity : unit -> Microsoft.AspNetCore.Http.HttpResults.UnprocessableEntity
Public Shared Function UnprocessableEntity () As UnprocessableEntity
Returns
The created UnprocessableEntity for the response.
Applies to
UnprocessableEntity<TValue>(TValue)
- Source:
- TypedResults.cs
Produces a Status422UnprocessableEntity response.
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)
Type Parameters
- TValue
The type of object that will be JSON serialized to the response body.
Parameters
- error
- TValue
The value to be included in the HTTP response body.
Returns
The created UnprocessableEntity<TValue> for the response.