Table of Contents

Class Component

Namespace
Sitecore.AspNetCore.SDK.LayoutService.Client.Response.Model
Assembly
Sitecore.AspNetCore.SDK.LayoutService.Client.dll

Represents component information for a Sitecore layout service response.

public class Component : FieldsReader, IFieldsReader, IPlaceholderFeature
Inheritance
Component
Implements
Inherited Members

Properties

DataSource

Gets or sets the datasource of the component.

public string DataSource { get; set; }

Property Value

string

Id

Gets or sets the ID of the component.

[DataMember(Name = "uid")]
[JsonPropertyName("uid")]
public string Id { get; set; }

Property Value

string

Name

Gets or sets the name of the component.

[DataMember(Name = "componentName")]
[JsonPropertyName("componentName")]
public string Name { get; set; }

Property Value

string

Parameters

Gets the parameters for the component.

[DataMember(Name = "params")]
[JsonPropertyName("params")]
public Dictionary<string, string> Parameters { get; init; }

Property Value

Dictionary<string, string>

Placeholders

Gets the placeholders for the component.

public Dictionary<string, Placeholder> Placeholders { get; init; }

Property Value

Dictionary<string, Placeholder>