Class SitecoreLayoutRequest
- Namespace
- Sitecore.AspNetCore.SDK.LayoutService.Client.Request
- Assembly
- Sitecore.AspNetCore.SDK.LayoutService.Client.dll
Represents Sitecore layout service request data.
public class SitecoreLayoutRequest : Dictionary<string, object?>, IDictionary<string, object?>, ICollection<KeyValuePair<string, object?>>, IReadOnlyDictionary<string, object?>, IReadOnlyCollection<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable
- Inheritance
-
SitecoreLayoutRequest
- Implements
- Inherited Members
- Extension Methods
Constructors
SitecoreLayoutRequest()
Initializes a new instance of the SitecoreLayoutRequest class.
public SitecoreLayoutRequest()
Methods
ConvertValue<T>(object)
Converts the given value to type T
.
protected virtual T? ConvertValue<T>(object value)
Parameters
value
objectThe input value.
Returns
- T
An instance of
T
if successful.
Type Parameters
T
The destination type.
TryReadValue<T>(string, out T?)
Safely gets a typed value from the underlying dictionary.
public virtual bool TryReadValue<T>(string key, out T? value)
Parameters
key
stringThe key to be located.
value
TThe discovered value.
Returns
- bool
True if successful, otherwise false.
Type Parameters
T
The type to be resolved.