Class BlockListItem
Represents a layout item for the Block List editor.
Inheritance
System.Object
      Namespace: Umbraco.Cms.Core.Models.Blocks
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "block", Namespace = "")]
public class BlockListItem : IBlockReference<IPublishedElement, IPublishedElement>, IBlockReference<IPublishedElement>, IBlockReference
  Constructors
View SourceBlockListItem(Udi, IPublishedElement, Udi, IPublishedElement)
Initializes a new instance of the BlockListItem class.
Declaration
public BlockListItem(Udi contentUdi, IPublishedElement content, Udi settingsUdi, IPublishedElement settings)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Udi | contentUdi | The content UDI.  | 
      
| IPublishedElement | content | The content.  | 
      
| Udi | settingsUdi | The settings UDI.  | 
      
| IPublishedElement | settings | The settings.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | contentUdi or content  | 
      
Properties
View SourceContent
Gets the content.
Declaration
[DataMember(Name = "content")]
public IPublishedElement Content { get; }
  Property Value
| Type | Description | 
|---|---|
| IPublishedElement | The content.  | 
      
ContentUdi
Gets the content UDI.
Declaration
[DataMember(Name = "contentUdi")]
public Udi ContentUdi { get; }
  Property Value
| Type | Description | 
|---|---|
| Udi | The content UDI.  | 
      
Settings
Gets the settings.
Declaration
[DataMember(Name = "settings")]
public IPublishedElement Settings { get; }
  Property Value
| Type | Description | 
|---|---|
| IPublishedElement | The settings.  | 
      
SettingsUdi
Gets the settings UDI.
Declaration
[DataMember(Name = "settingsUdi")]
public Udi SettingsUdi { get; }
  Property Value
| Type | Description | 
|---|---|
| Udi | The settings UDI.  |