Class PublishedCultureInfo
Contains culture specific values for IPublishedContent.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Models.PublishedContent
Assembly: Umbraco.Core.dll
Syntax
public class PublishedCultureInfo
Constructors
View SourcePublishedCultureInfo(String, String, String, DateTime)
Initializes a new instance of the PublishedCultureInfo class.
Declaration
public PublishedCultureInfo(string culture, string name, string urlSegment, DateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | culture | |
| System.String | name | |
| System.String | urlSegment | |
| DateTime | date |
Properties
View SourceCulture
Gets the culture.
Declaration
public string Culture { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Date
Gets the date associated with the culture.
Declaration
public DateTime Date { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Remarks
For published culture, this is the date the culture was published. For draft cultures, this is the date the culture was made available, ie the last time its name changed.
Name
Gets the name of the item.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
UrlSegment
Gets the URL segment of the item.
Declaration
public string UrlSegment { get; }
Property Value
| Type | Description |
|---|---|
| System.String |