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
SitecoreLayoutRequestThe SitecoreLayoutRequest object.
SitecoreLayoutResponse(SitecoreLayoutRequest, List<SitecoreLayoutServiceClientException>)
Initializes a new instance of the SitecoreLayoutResponse class.
public SitecoreLayoutResponse(SitecoreLayoutRequest request, List<SitecoreLayoutServiceClientException> errors)
Parameters
request
SitecoreLayoutRequestThe 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
Errors
Gets the list of errors returned by the Sitecore layout service response.
public IReadOnlyCollection<SitecoreLayoutServiceClientException> Errors { get; }
Property Value
HasErrors
Gets a value indicating whether the response has errors.
public bool HasErrors { get; }
Property Value
Metadata
Gets or sets the metadata of the response.
public ILookup<string, string>? Metadata { get; set; }
Property Value
Request
Gets the original request.
public SitecoreLayoutRequest Request { get; }