Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockItemData

    Represents a single block's data in raw form.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.Blocks
    Assembly: Umbraco.Core.dll
    Syntax
    public class BlockItemData

    Constructors

    View Source

    BlockItemData()

    Initializes a new instance of the BlockItemData class.

    Declaration
    public BlockItemData()
    View Source

    BlockItemData(Guid, Guid, string)

    Initializes a new instance of the BlockItemData class.

    Declaration
    public BlockItemData(Guid key, Guid contentTypeKey, string contentTypeAlias)
    Parameters
    Type Name Description
    Guid key

    The key.

    Guid contentTypeKey

    The content type key.

    string contentTypeAlias

    The content type alias.

    View Source

    BlockItemData(Udi, Guid, string)

    Initializes a new instance of the BlockItemData class.

    Declaration
    [Obsolete("Use constructor that accepts GUID key instead. Scheduled for removal in Umbraco 18.")]
    public BlockItemData(Udi udi, Guid contentTypeKey, string contentTypeAlias)
    Parameters
    Type Name Description
    Udi udi

    The UDI.

    Guid contentTypeKey

    The content type key.

    string contentTypeAlias

    The content type alias.

    Properties

    View Source

    ContentTypeAlias

    Gets or sets the content type alias.

    Declaration
    [JsonIgnore]
    public string ContentTypeAlias { get; set; }
    Property Value
    Type Description
    string
    Remarks

    Not serialized, manually set and used internally.

    View Source

    ContentTypeKey

    Gets or sets the content type key.

    Declaration
    public Guid ContentTypeKey { get; set; }
    Property Value
    Type Description
    Guid

    The content type key.

    View Source

    Key

    Gets or sets the key.

    Declaration
    public Guid Key { get; set; }
    Property Value
    Type Description
    Guid

    The key.

    View Source

    RawPropertyValues

    Gets or sets the raw property values.

    Declaration
    [Obsolete("Use Properties instead. Scheduled for removal in Umbraco 18.")]
    [JsonExtensionData]
    public Dictionary<string, object?> RawPropertyValues { get; set; }
    Property Value
    Type Description
    Dictionary<string, object>

    The raw property values.

    View Source

    Udi

    Gets or sets the UDI.

    Declaration
    [Obsolete("Use Key instead. Scheduled for removal in Umbraco 18.")]
    [JsonIgnore]
    public Udi? Udi { get; set; }
    Property Value
    Type Description
    Udi

    The UDI.

    View Source

    Values

    Gets or sets the property values.

    Declaration
    public IList<BlockPropertyValue> Values { get; set; }
    Property Value
    Type Description
    IList<BlockPropertyValue>

    The property values.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX