Class VariantModel
Represents a variant model for content editing operations.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.ContentEditing
Assembly: Umbraco.Core.dll
Syntax
public class VariantModel
Constructors
View SourceVariantModel()
Declaration
public VariantModel()
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
public required 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 |