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
    public abstract class ContentTypeSave<TPropertyType> : ContentTypeSave 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
    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
    public bool AllowSegmentVariant { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    Groups

    Declaration
    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
    ValidationContext validationContext
    Returns
    Type Description
    IEnumerable<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