Try our conversational search powered by Generative AI!

Class LanguageData

Default implementation of ILocalizable

Inheritance
System.Object
LanguageData
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public class LanguageData : ILocalizable, ILocale, IReadOnly<LanguageData>, IReadOnly, IModifiedTrackable

Constructors

LanguageData()

Declaration
public LanguageData()

Properties

ExistingLanguages

Gets or sets the existing languages.

Declaration
public IEnumerable<CultureInfo> ExistingLanguages { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Globalization.CultureInfo>

The languages.

IsModified

Gets a value indicating whether this instance has been modified after loading.

Declaration
public bool IsModified { get; }
Property Value
Type Description
System.Boolean

true if this instance has been modified; otherwise, false.

IsReadOnly

Gets a value indicating whether this instance is read only.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean

true if this instance is read only; otherwise, false.

Language

Gets or sets the language for this instance.

Declaration
public CultureInfo Language { get; set; }
Property Value
Type Description
System.Globalization.CultureInfo

The language.

MasterLanguage

Gets or sets the master language for this instance.

Declaration
public CultureInfo MasterLanguage { get; set; }
Property Value
Type Description
System.Globalization.CultureInfo

The master language.

Methods

CreateWritableClone()

Creates a writable clone.

Declaration
public LanguageData CreateWritableClone()
Returns
Type Description
LanguageData

MakeReadOnly()

Makes the read only.

Declaration
public void MakeReadOnly()

ResetModified()

Resets the modified flag on all the data contained on the instance.

Declaration
public void ResetModified()

ThrowIfReadOnly()

Utility method that, when called, throws a System.NotSupportedException indicating that the PageReference has been set as read-only.

Declaration
protected void ThrowIfReadOnly()
Remarks

This method is used internally by other PageReference methods to standardize the exception thrown when trying to modify a PageReference set as read-only.

Explicit Interface Implementations

IReadOnly.CreateWritableClone()

Creates a writable clone.

Declaration
object IReadOnly.CreateWritableClone()
Returns
Type Description
System.Object

Implements

Extension Methods