Class ContentCultureInfos
The name of a content variant for a given culture
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class ContentCultureInfos : BeingDirtyBase, IRememberBeingDirty, ICanBeDirty, IDeepCloneable
Constructors
View SourceContentCultureInfos(string)
Initializes a new instance of the ContentCultureInfos class.
Declaration
public ContentCultureInfos(string culture)
Parameters
| Type | Name | Description |
|---|---|---|
| string | culture |
Properties
View SourceCulture
Gets the culture.
Declaration
public string Culture { get; }
Property Value
| Type | Description |
|---|---|
| string |
Date
Gets the date.
Declaration
public DateTime Date { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Name
Gets the name.
Declaration
public string? Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceDeconstruct(out string, out string?)
Deconstructs into culture and name.
Declaration
public void Deconstruct(out string culture, out string? name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | culture | |
| string | name |
Deconstruct(out string, out string?, out DateTime)
Deconstructs into culture, name and date.
Declaration
public void Deconstruct(out string culture, out string? name, out DateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| string | culture | |
| string | name | |
| DateTime | date |
DeepClone()
Declaration
public object DeepClone()
Returns
| Type | Description |
|---|---|
| object |
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Equals(ContentCultureInfos?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ContentCultureInfos? other)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentCultureInfos | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |