TypedResults.InternalServerError メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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>。