Class SitecoreLayoutResponse

Version: 21.x

Models a result from calling the Sitecore layout service.

Inheritance

System.Object

SitecoreLayoutResponse

Namespace: Sitecore.LayoutService.Client.Response

Assembly: Sitecore.LayoutService.Client.Abstractions.dll

Syntax
public class SitecoreLayoutResponse : Object

Constructors

SitecoreLayoutResponse(SitecoreLayoutRequest)

Initializes a new instance of the SitecoreLayoutResponse class.

Declaration
public SitecoreLayoutResponse(SitecoreLayoutRequest request)
Parameters
TypeNameDescription
SitecoreLayoutRequestrequestThe SitecoreLayoutRequest object.

SitecoreLayoutResponse(SitecoreLayoutRequest, List)

Initializes a new instance of the SitecoreLayoutResponse class.

Declaration
public SitecoreLayoutResponse(SitecoreLayoutRequest request, List<SitecoreLayoutServiceClientException> errors)
Parameters
TypeNameDescription
SitecoreLayoutRequestrequestThe SitecoreLayoutRequest object.
System.Collections.Generic.List

<

SitecoreLayoutServiceClientException

>
errorsThe list of SitecoreLayoutServiceClientException objects.

Properties

Content

Gets or sets the content of the response.

Declaration
public SitecoreLayoutResponseContent Content { get; set; }
Property Value
TypeDescription
SitecoreLayoutResponseContent

Errors

Gets the list of errors returned by the Sitecore layout service response.

Declaration
public IReadOnlyCollection<SitecoreLayoutServiceClientException> Errors { get; }
Property Value
TypeDescription
System.Collections.Generic.IReadOnlyCollection

<

SitecoreLayoutServiceClientException

>

HasErrors

Gets a value indicating whether the response has errors.

Declaration
public bool HasErrors { get; }
Property Value
TypeDescription
System.Boolean

Metadata

Gets or sets the metadata of the response.

Declaration
public ILookup<string, string> Metadata { get; set; }
Property Value
TypeDescription
System.Linq.ILookup

<

System.String

,

System.String

>

Request

Gets the original request.

Declaration
public SitecoreLayoutRequest Request { get; }
Property Value
TypeDescription
SitecoreLayoutRequest
If you have suggestions for improving this article, let us know!