TypedResults.InternalServerError メソッド

定義

オーバーロード

InternalServerError()

Status500InternalServerError 応答を生成します。

InternalServerError<TValue>(TValue)

Status500InternalServerError 応答を生成します。

InternalServerError()

Status500InternalServerError 応答を生成します。

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

戻り値

応答用に作成された InternalServerError

適用対象

InternalServerError<TValue>(TValue)

Status500InternalServerError 応答を生成します。

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)

型パラメーター

TValue

応答本文にシリアル化される JSON になるエラー オブジェクトの型。

パラメーター

error
TValue

HTTP 応答本文に含める値。

戻り値

応答用に作成された InternalServerError<TValue>

適用対象