Class SitecoreLayoutRequest
Represents Sitecore layout service request data.
Inheritance
System.Object
SitecoreLayoutRequest
Namespace: Sitecore.LayoutService.Client.Request
Assembly: Sitecore.LayoutService.Client.Abstractions.dll
Syntax
public class SitecoreLayoutRequest : Dictionary<string, object>
Constructors
SitecoreLayoutRequest()
Initializes a new instance of the SitecoreLayoutRequest class.
Declaration
public SitecoreLayoutRequest()
Methods
ConvertValue<T>(Object)
Converts the given value to type T
.
Declaration
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
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. |