Class ApiBlockItem
Represents a block item in the Delivery API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public class ApiBlockItem
Constructors
View SourceApiBlockItem(IApiElement, IApiElement?)
Initializes a new instance of the ApiBlockItem class.
Declaration
public ApiBlockItem(IApiElement content, IApiElement? settings)
Parameters
| Type | Name | Description |
|---|---|---|
| IApiElement | content | The content element of the block. |
| IApiElement | settings | The optional settings element of the block. |
Properties
View SourceContent
Gets the content element of the block.
Declaration
public IApiElement Content { get; }
Property Value
| Type | Description |
|---|---|
| IApiElement |
Settings
Gets the optional settings element of the block.
Declaration
public IApiElement? Settings { get; }
Property Value
| Type | Description |
|---|---|
| IApiElement |