Skip to content

ResultWithStatus<TResponse> class

namespace: Serenity.Services   assemblySerenity.Net.Web

An action result type containing an object with a status code.

public class ResultWithStatus<TResponse> : StatusCodeResult
parameter description
TResponse The response data type.
data The data object.
statusCode The status code.

Public Members

name description
ResultWithStatus(…) An action result type containing an object with a status code.
ContentEncoding { get; set; } Gets or sets the content encoding.
ContentType { get; set; } Gets or sets the content type.
Data { get; set; } Gets or sets the data.
SerializerOptions { get; set; } Gets or sets the JSON serializer settings.
override ExecuteResultAsync(…)

Remarks

Initializes a new instance of the ResultWithStatus class.

See Also