Class ContentItemLanguageMetadata
- Namespace
- CMS.ContentEngine
- Assembly
- CMS.ContentEngine.dll
Content item language metadata model.
public sealed class ContentItemLanguageMetadata
- Inheritance
-
objectContentItemLanguageMetadata
- Extension Methods
Constructors
ContentItemLanguageMetadata(int, string, string, VersionStatus, DateTime, int, DateTime, int, bool)
Initializes a new instance of ContentItemMetadata
public ContentItemLanguageMetadata(int contentItemId, string languageName, string displayName, VersionStatus latestVersionStatus, DateTime createdWhen, int createdBy, DateTime modifiedWhen, int modifiedBy, bool hasImageAsset)
Parameters
contentItemId
intContent item ID.
languageName
stringLanguage codename of a content item language variant.
displayName
stringDisplay name of a content item.
latestVersionStatus
VersionStatusVersion status of the latest version of a content item.
createdWhen
DateTimeDate and time when the content item language variant was created.
createdBy
intID of the user who created the content item language variant.
modifiedWhen
DateTimeDate and time when the content item language variant was updated.
modifiedBy
intID of the user who updated the content item language variant.
hasImageAsset
boolIndicates if the content item has image asset.
Exceptions
- ArgumentException
Thrown when
languageName
ordisplayName
is null or empty.
Properties
ContentItemID
Content item ID.
public int ContentItemID { get; }
Property Value
- int
CreatedBy
ID of a user who created the content language item variant.
public int CreatedBy { get; }
Property Value
- int
CreatedWhen
Date and time when the content item language variant was created.
public DateTime CreatedWhen { get; }
Property Value
- DateTime
DisplayName
Display name of the content item.
public string DisplayName { get; set; }
Property Value
- string
HasImageAsset
Content item UI data has image asset.
public bool HasImageAsset { get; init; }
Property Value
- bool
LanguageName
Language codename of the content item language variant.
public string LanguageName { get; }
Property Value
- string
LatestVersionStatus
Version status of the latest version of the content item.
public VersionStatus LatestVersionStatus { get; }
Property Value
ModifiedBy
ID of a user who updated the content language item variant.
public int ModifiedBy { get; }
Property Value
- int
ModifiedWhen
Date and time when the content item language variant was updated.
public DateTime ModifiedWhen { get; }
Property Value
- DateTime
ScheduledPublishWhen
Date and time when the content item should be published.
public DateTime? ScheduledPublishWhen { get; set; }
Property Value
- DateTime?
Remarks
Setting System.DateTime.MinValue is treated as null.
ScheduledUnpublishWhen
Date and time when the content item should be unpublished.
public DateTime? ScheduledUnpublishWhen { get; set; }
Property Value
- DateTime?
Remarks
Setting System.DateTime.MinValue is treated as null.