Search Results for

    Show / Hide Table of Contents
    View Source

    Class DocumentTypeSave

    Model used to save a document type

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

    Properties

    View Source

    AllowedTemplates

    The list of allowed templates to assign (template alias)

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

    DefaultTemplate

    The default template to assign (template alias)

    Declaration
    [DataMember(Name = "defaultTemplate")]
    public string DefaultTemplate { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    View Source

    Validate(ValidationContext)

    Custom validation

    Declaration
    public override 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
    • Properties
      • AllowedTemplates
      • DefaultTemplate
    • Methods
      • Validate(ValidationContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX