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 SourceVariantModelBase()
Declaration
protected VariantModelBase()
Properties
View SourceCulture
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 |
Name
Gets or sets the name of the content for this variant.
Declaration
[Required]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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 |