Class LanguageData
Default implementation of ILocalizable
Inheritance
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0Syntax
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 |
|
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 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 |