Class SitecoreLayoutResponse
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
Type | Name | Description |
---|---|---|
SitecoreLayoutRequest | request | The SitecoreLayoutRequest object. |
SitecoreLayoutResponse(SitecoreLayoutRequest, List<SitecoreLayoutServiceClientException>)
Initializes a new instance of the SitecoreLayoutResponse class.
Declaration
public SitecoreLayoutResponse(SitecoreLayoutRequest request, List<SitecoreLayoutServiceClientException> errors)
Parameters
Type | Name | Description |
---|---|---|
SitecoreLayoutRequest | request | The SitecoreLayoutRequest object. |
System.Collections.Generic.List<SitecoreLayoutServiceClientException> | errors | The list of SitecoreLayoutServiceClientException objects. |
Properties
Content
Gets or sets the content of the response.
Declaration
public SitecoreLayoutResponseContent Content { get; set; }
Property Value
Type | Description |
---|---|
SitecoreLayoutResponseContent |
Errors
Gets the list of errors returned by the Sitecore layout service response.
Declaration
public IReadOnlyCollection<SitecoreLayoutServiceClientException> Errors { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<SitecoreLayoutServiceClientException> |
HasErrors
Gets a value indicating whether the response has errors.
Declaration
public bool HasErrors { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Metadata
Gets or sets the metadata of the response.
Declaration
public ILookup<string, string> Metadata { get; set; }
Property Value
Type | Description |
---|---|
System.Linq.ILookup<System.String, System.String> |
Request
Gets the original request.
Declaration
public SitecoreLayoutRequest Request { get; }
Property Value
Type | Description |
---|---|
SitecoreLayoutRequest |