Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentItemSave

    A model representing a content item to be saved

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models.ContentEditing
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "content", Namespace = "")]
    public class ContentItemSave : IContentSave<IContent>, IHaveUploadedFiles

    Constructors

    View Source

    ContentItemSave()

    Declaration
    public ContentItemSave()

    Properties

    View Source

    Action

    Declaration
    [DataMember(Name = "action", IsRequired = true)]
    [Required]
    public ContentSaveAction Action { get; set; }
    Property Value
    Type Description
    ContentSaveAction
    View Source

    ContentTypeAlias

    Declaration
    [DataMember(Name = "contentTypeAlias", IsRequired = true)]
    [Required(AllowEmptyStrings = false)]
    public string ContentTypeAlias { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Id

    Declaration
    [DataMember(Name = "id", IsRequired = true)]
    [Required]
    public int Id { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    ParentId

    Declaration
    [DataMember(Name = "parentId", IsRequired = true)]
    [Required]
    public int ParentId { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    PersistedContent

    Declaration
    [IgnoreDataMember]
    public IContent PersistedContent { get; set; }
    Property Value
    Type Description
    IContent
    View Source

    TemplateAlias

    The template alias to save

    Declaration
    [DataMember(Name = "templateAlias")]
    public string TemplateAlias { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    UploadedFiles

    Declaration
    [IgnoreDataMember]
    public List<ContentPropertyFile> UploadedFiles { get; }
    Property Value
    Type Description
    List<ContentPropertyFile>
    View Source

    Variants

    Declaration
    [DataMember(Name = "variants", IsRequired = true)]
    public IEnumerable<ContentVariantSave> Variants { get; set; }
    Property Value
    Type Description
    IEnumerable<ContentVariantSave>

    Explicit Interface Implementations

    View Source

    IContentSave<IContent>.PersistedContent

    The real persisted content object - used during inbound model binding

    Declaration
    [IgnoreDataMember]
    IContent IContentSave<IContent>.PersistedContent { get; set; }
    Returns
    Type Description
    IContent
    Remarks

    This is not used for outgoing model information.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentItemSave()
    • Properties
      • Action
      • ContentTypeAlias
      • Id
      • ParentId
      • PersistedContent
      • TemplateAlias
      • UploadedFiles
      • Variants
    • Explicit Interface Implementations
      • IContentSave<IContent>.PersistedContent
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX