InternalServerError<TValue> Class
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.
An IResult that on execution will write an object to the response with Internal Server Error (500) status code.
public sealed class InternalServerError<TValue> : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult<TValue>, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
type InternalServerError<'Value> = class
interface IResult
interface IEndpointMetadataProvider
interface IStatusCodeHttpResult
interface IValueHttpResult
interface IValueHttpResult<'Value>
Public NotInheritable Class InternalServerError(Of TValue)
Implements IEndpointMetadataProvider, IResult, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult(Of TValue)
Type Parameters
- TValue
The type of error object that will be JSON serialized to the response body.
- Inheritance
-
InternalServerError<TValue>
- Implements
Properties
StatusCode |
Gets the HTTP status code: Status500InternalServerError |
Value |
Gets the object result. |
Methods
ExecuteAsync(HttpContext) |
Write an HTTP response reflecting the result. |
Explicit Interface Implementations
IEndpointMetadataProvider.PopulateMetadata(MethodInfo, EndpointBuilder) |
Populates metadata for the related Endpoint and MethodInfo. |
IStatusCodeHttpResult.StatusCode | |
IValueHttpResult.Value |