Megosztás a következőn keresztül:


TypedResults.InternalServerError Method

Definition

Overloads

InternalServerError()

Produces a Status500InternalServerError response.

InternalServerError<TValue>(TValue)

Produces a Status500InternalServerError response.

InternalServerError()

Produces a Status500InternalServerError response.

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

Returns

The created InternalServerError for the response.

Applies to

InternalServerError<TValue>(TValue)

Produces a Status500InternalServerError response.

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

Type Parameters

TValue

The type of error 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 InternalServerError<TValue> for the response.

Applies to