Class SitecoreLayoutRequest
Version: 21.x
Represents Sitecore layout service request data.
Inheritance
System.Object
SitecoreLayoutRequest
Namespace: Sitecore.LayoutService.Client.Request
Assembly: Sitecore.LayoutService.Client.Abstractions.dll
Syntax
RequestResponse
public class SitecoreLayoutRequest : Dictionary<string, object>Constructors
SitecoreLayoutRequest()
Initializes a new instance of the SitecoreLayoutRequest class.
Declaration
RequestResponse
public SitecoreLayoutRequest()Methods
ConvertValue<T>(Object)
Converts the given value to type T.
Declaration
RequestResponse
protected virtual T ConvertValue<T>(object value)Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value |
The input value. |
Returns
| Type | Description |
|---|---|
| T |
An instance of |
Type Parameters
| Name | Description |
|---|---|
| T |
The destination type. |
TryReadValue<T>(String, out T)
Safely gets a typed value from the underlying dictionary.
Declaration
RequestResponse
public virtual bool TryReadValue<T>(string key, out T value)Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key |
The key to be located. |
| T | value |
The discovered value. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
True if successful, otherwise false. |
Type Parameters
| Name | Description |
|---|---|
| T |
The type to be resolved. |