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
TypeNameDescription
System.Objectvalue

The input value.

Returns
TypeDescription
T

An instance of T if successful.

Type Parameters
NameDescription
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
TypeNameDescription
System.Stringkey

The key to be located.

Tvalue

The discovered value.

Returns
TypeDescription
System.Boolean

True if successful, otherwise false.

Type Parameters
NameDescription
T

The type to be resolved.

Extension Methods

Do you have some feedback for us?

If you have suggestions for improving this article,