Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentTypeSave

    Abstract model used to save content types

    Inheritance
    System.Object
    EntityBasic
    ContentTypeBasic
    Namespace: Umbraco.Cms.Core.Models.ContentEditing
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "contentType", Namespace = "")]
    public abstract class ContentTypeSave : ContentTypeBasic, IValidatableObject

    Constructors

    View Source

    ContentTypeSave()

    Declaration
    protected ContentTypeSave()

    Properties

    View Source

    AllowAsRoot

    Declaration
    [DataMember(Name = "allowAsRoot")]
    public bool AllowAsRoot { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    AllowedContentTypes

    Declaration
    [DataMember(Name = "allowedContentTypes")]
    public IEnumerable<int> AllowedContentTypes { get; set; }
    Property Value
    Type Description
    IEnumerable<System.Int32>
    View Source

    CompositeContentTypes

    Declaration
    [DataMember(Name = "compositeContentTypes")]
    public IEnumerable<string> CompositeContentTypes { get; set; }
    Property Value
    Type Description
    IEnumerable<System.String>
    View Source

    HistoryCleanup

    Declaration
    [DataMember(Name = "historyCleanup")]
    public HistoryCleanupViewModel HistoryCleanup { get; set; }
    Property Value
    Type Description
    HistoryCleanupViewModel

    Methods

    View Source

    Validate(ValidationContext)

    Custom validation

    Declaration
    public virtual IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    System.ComponentModel.DataAnnotations.ValidationContext validationContext
    Returns
    Type Description
    IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentTypeSave()
    • Properties
      • AllowAsRoot
      • AllowedContentTypes
      • CompositeContentTypes
      • HistoryCleanup
    • Methods
      • Validate(ValidationContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX