Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentVariantSave

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models.ContentEditing
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "contentVariant", Namespace = "")]
    public class ContentVariantSave : IContentProperties<ContentPropertyBasic>

    Constructors

    View Source

    ContentVariantSave()

    Declaration
    public ContentVariantSave()

    Properties

    View Source

    Culture

    The culture of this variant, if this is invariant than this is null or empty

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

    ExpireDate

    Declaration
    [DataMember(Name = "expireDate")]
    public DateTime? ExpireDate { get; set; }
    Property Value
    Type Description
    System.Nullable<DateTime>
    View Source

    Name

    Declaration
    [DataMember(Name = "name", IsRequired = true)]
    [MaxLength(255, ErrorMessage = "Name must be less than 255 characters")]
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Properties

    Declaration
    [DataMember(Name = "properties")]
    public IEnumerable<ContentPropertyBasic> Properties { get; set; }
    Property Value
    Type Description
    IEnumerable<ContentPropertyBasic>
    View Source

    PropertyCollectionDto

    The property DTO object is used to gather all required property data including data type information etc... for use with validation - used during inbound model binding

    Declaration
    [IgnoreDataMember]
    public ContentPropertyCollectionDto PropertyCollectionDto { get; set; }
    Property Value
    Type Description
    ContentPropertyCollectionDto
    Remarks

    We basically use this object to hydrate all required data from the database into one object so we can validate everything we need instead of having to look up all the data individually. This is not used for outgoing model information.

    View Source

    Publish

    Indicates if the variant should be published

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

    This option will have no affect if Save is false. This is not used to unpublish.

    View Source

    ReleaseDate

    Declaration
    [DataMember(Name = "releaseDate")]
    public DateTime? ReleaseDate { get; set; }
    Property Value
    Type Description
    System.Nullable<DateTime>
    View Source

    Save

    Indicates if the variant should be updated

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

    If this is false, this variant data will not be updated at all

    View Source

    Segment

    The segment of this variant, if this is invariant than this is null or empty

    Declaration
    [DataMember(Name = "segment")]
    public string Segment { get; set; }
    Property Value
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentVariantSave()
    • Properties
      • Culture
      • ExpireDate
      • Name
      • Properties
      • PropertyCollectionDto
      • Publish
      • ReleaseDate
      • Save
      • Segment
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX