Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentTypeSave<TPropertyType>

    Abstract model used to save content types

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

    Constructors

    View Source

    ContentTypeSave()

    Declaration
    protected ContentTypeSave()

    Properties

    View Source

    AllowCultureVariant

    A rule for defining how a content type can be varied

    Declaration
    [DataMember(Name = "allowCultureVariant")]
    public bool AllowCultureVariant { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    This is only supported on document types right now but in the future it could be media types too

    View Source

    AllowSegmentVariant

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

    Groups

    Declaration
    [DataMember(Name = "groups")]
    public IEnumerable<PropertyGroupBasic<TPropertyType>> Groups { get; set; }
    Property Value
    Type Description
    IEnumerable<PropertyGroupBasic<TPropertyType>>

    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
    • Constructors
      • ContentTypeSave()
    • Properties
      • AllowCultureVariant
      • AllowSegmentVariant
      • Groups
    • Methods
      • Validate(ValidationContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX