Search Results for

    Show / Hide Table of Contents
    View Source

    Class Segment

    Represents a content segment used for personalization or A/B testing.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class Segment

    Constructors

    View Source

    Segment()

    Declaration
    public Segment()

    Properties

    View Source

    Alias

    Gets or sets the alias (identifier) of the segment.

    Declaration
    public required string Alias { get; set; }
    Property Value
    Type Description
    string
    View Source

    Cultures

    Gets or sets the cultures associated with this segment.

    Declaration
    [Obsolete("This property is temporary. A more permanent solution will follow. Scheduled for removal in Umbraco 20.")]
    public IEnumerable<string>? Cultures { get; set; }
    Property Value
    Type Description
    IEnumerable<string>
    View Source

    Name

    Gets or sets the display name of the segment.

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