Class LanguageData
Default implementation of ILocalizable
Inheritance
Namespace: EPiServer.Core.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class LanguageData : Object, 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 |
|
IsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
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 LanguageData has been set as read-only.
Declaration
protected void ThrowIfReadOnly()
Explicit Interface Implementations
IReadOnly.CreateWritableClone()
Creates a writable clone.
Declaration
object IReadOnly.CreateWritableClone()
Returns
Type | Description |
---|---|
System.Object |