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 SourceSegment()
Declaration
public Segment()
Properties
View SourceAlias
Gets or sets the alias (identifier) of the segment.
Declaration
public required string Alias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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> |
Name
Gets or sets the display name of the segment.
Declaration
public required string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |