Search Results for

    Show / Hide Table of Contents
    View Source

    Class VariantModelBase

    Represents the base model for content variants with culture and segment support.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.ContentEditing
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class VariantModelBase : IHasCultureAndSegment

    Constructors

    View Source

    VariantModelBase()

    Declaration
    protected VariantModelBase()

    Properties

    View Source

    Culture

    Gets or sets the culture code for this variant, or null for invariant content.

    Declaration
    public string? Culture { get; set; }
    Property Value
    Type Description
    string
    View Source

    Name

    Gets or sets the name of the content for this variant.

    Declaration
    [Required]
    public string Name { get; set; }
    Property Value
    Type Description
    string
    View Source

    Segment

    Gets or sets the segment identifier for this variant, or null for non-segmented content.

    Declaration
    public string? Segment { get; set; }
    Property Value
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX