Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockItemData

    Represents a single block's data in raw form

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

    Constructors

    View Source

    BlockItemData()

    Declaration
    public BlockItemData()
    View Source

    BlockItemData(Udi, Guid, String)

    Declaration
    public BlockItemData(Udi udi, Guid contentTypeKey, string contentTypeAlias)
    Parameters
    Type Name Description
    Udi udi
    Guid contentTypeKey
    System.String contentTypeAlias

    Properties

    View Source

    ContentTypeAlias

    not serialized, manually set and used during internally

    Declaration
    [JsonIgnore]
    public string ContentTypeAlias { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    ContentTypeKey

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

    Key

    Declaration
    [JsonIgnore]
    public Guid Key { get; }
    Property Value
    Type Description
    Guid
    View Source

    PropertyValues

    Used during deserialization to convert the raw property data into data with a property type context

    Declaration
    [JsonIgnore]
    public IDictionary<string, BlockItemData.BlockPropertyValue> PropertyValues { get; set; }
    Property Value
    Type Description
    IDictionary<System.String, BlockItemData.BlockPropertyValue>
    View Source

    RawPropertyValues

    The remaining properties will be serialized to a dictionary

    Declaration
    [JsonExtensionData]
    public Dictionary<string, object> RawPropertyValues { get; set; }
    Property Value
    Type Description
    Umbraco.Cms.Core.Dictionary<System.String, System.Object>
    Remarks

    The JsonExtensionDataAttribute is used to put the non-typed properties into a bucket https://docs.microsoft.com/en-us/dotnet/api/system.text.json.serialization.jsonextensiondataattribute NestedContent serializes to string, int, whatever eg "stringValue":"Some String","numericValue":125,"otherNumeric":null

    View Source

    Udi

    Declaration
    public Udi Udi { get; set; }
    Property Value
    Type Description
    Udi
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • BlockItemData()
      • BlockItemData(Udi, Guid, String)
    • Properties
      • ContentTypeAlias
      • ContentTypeKey
      • Key
      • PropertyValues
      • RawPropertyValues
      • Udi
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX