Table of Contents

Class SitecoreLayoutResponse

Namespace
Sitecore.AspNetCore.SDK.LayoutService.Client.Response
Assembly
Sitecore.AspNetCore.SDK.LayoutService.Client.dll

Models a result from calling the Sitecore layout service.

public class SitecoreLayoutResponse
Inheritance
SitecoreLayoutResponse
Inherited Members

Constructors

SitecoreLayoutResponse(SitecoreLayoutRequest)

Initializes a new instance of the SitecoreLayoutResponse class.

public SitecoreLayoutResponse(SitecoreLayoutRequest request)

Parameters

request SitecoreLayoutRequest

The SitecoreLayoutRequest object.

SitecoreLayoutResponse(SitecoreLayoutRequest, List<SitecoreLayoutServiceClientException>)

Initializes a new instance of the SitecoreLayoutResponse class.

public SitecoreLayoutResponse(SitecoreLayoutRequest request, List<SitecoreLayoutServiceClientException> errors)

Parameters

request SitecoreLayoutRequest

The SitecoreLayoutRequest object.

errors List<SitecoreLayoutServiceClientException>

The list of SitecoreLayoutServiceClientException objects.

Properties

Content

Gets or sets the content of the response.

public SitecoreLayoutResponseContent? Content { get; set; }

Property Value

SitecoreLayoutResponseContent

Errors

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

public IReadOnlyCollection<SitecoreLayoutServiceClientException> Errors { get; }

Property Value

IReadOnlyCollection<SitecoreLayoutServiceClientException>

HasErrors

Gets a value indicating whether the response has errors.

public bool HasErrors { get; }

Property Value

bool

Metadata

Gets or sets the metadata of the response.

public ILookup<string, string>? Metadata { get; set; }

Property Value

ILookup<string, string>

Request

Gets the original request.

public SitecoreLayoutRequest Request { get; }

Property Value

SitecoreLayoutRequest