November Happy Hour will be moved to Thursday December 5th.

Class RestResult

Encapsulates the result of a successful REST request

Inheritance
System.Object
RestResult
Namespace: EPiServer.Shell.Services.Rest
Assembly: EPiServer.Shell.dll
Version: 9.12.2
Syntax
public class RestResult : RestResultBase

Constructors

RestResult()

Initializes a new instance of the RestResult class.

Declaration
public RestResult()

RestResult(IObjectSerializerFactory)

Initializes a new instance of the RestResult class.

Declaration
public RestResult(IObjectSerializerFactory serializerFactory)
Parameters
Type Name Description
IObjectSerializerFactory serializerFactory

The serializer factory.

Properties

Range

Gets or sets information about the data range returned for the request.

Declaration
public ItemRange Range { get; set; }
Property Value
Type Description
ItemRange

StatusCode

Gets or sets the http status code.

Declaration
[Obsolete("Return a RestStatusCodeResult or a HttpStatusCodeResult with the proper status code instead")]
public HttpStatusCode StatusCode { get; set; }
Property Value
Type Description
System.Net.HttpStatusCode

Methods

ExecuteResult(ControllerContext)

Processes the result and writes the resulting data to the http output stream.

Declaration
public override void ExecuteResult(ControllerContext context)
Parameters
Type Name Description
System.Web.Mvc.ControllerContext context

The context in which the result is executed.

Overrides

Extension Methods