Class VariationContext
Represents the variation context.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Models.PublishedContent
Assembly: Umbraco.Core.dll
Syntax
public class VariationContext
Constructors
View SourceVariationContext(String, String)
Initializes a new instance of the Variation
Declaration
public VariationContext(string culture = null, string segment = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
culture | |
System. |
segment |
Properties
View SourceCulture
Gets the culture.
Declaration
public string Culture { get; }
Property Value
Type | Description |
---|---|
System. |
Segment
Gets the segment.
Declaration
public string Segment { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
View SourceGetSegment(Int32)
Gets the segment for the content item
Declaration
public virtual string GetSegment(int contentId)
Parameters
Type | Name | Description |
---|---|---|
System. |
contentId |
Returns
Type | Description |
---|---|
System. |