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
RequestResponse
public class SitecoreLayoutResponse : ObjectConstructors
SitecoreLayoutResponse(SitecoreLayoutRequest)
Initializes a new instance of the SitecoreLayoutResponse class.
Declaration
RequestResponse
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
RequestResponse
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
RequestResponse
public SitecoreLayoutResponseContent Content { get; set; }Property Value
| Type | Description |
|---|---|
| SitecoreLayoutResponseContent |
Errors
Gets the list of errors returned by the Sitecore layout service response.
Declaration
RequestResponse
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
RequestResponse
public bool HasErrors { get; }Property Value
| Type | Description |
|---|---|
| System.Boolean |
Metadata
Gets or sets the metadata of the response.
Declaration
RequestResponse
public ILookup<string, string> Metadata { get; set; }Property Value
| Type | Description |
|---|---|
| System.Linq.ILookup<System.String, System.String> |
Request
Gets the original request.
Declaration
RequestResponse
public SitecoreLayoutRequest Request { get; }Property Value
| Type | Description |
|---|---|
| SitecoreLayoutRequest |