Class ContentLanguageSetting
Defined language setting per content in EPiServer similar to dynamic properties
Inheritance
System.Object
ContentLanguageSetting
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()
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public class ContentLanguageSetting : IReadOnly<ContentLanguageSetting>, IReadOnly
Constructors
ContentLanguageSetting()
Declaration
public ContentLanguageSetting()
ContentLanguageSetting(ContentReference, String)
Declaration
public ContentLanguageSetting(ContentReference contentLink, string language)
Parameters
ContentLanguageSetting(ContentReference, String, String, String[])
Declaration
public ContentLanguageSetting(ContentReference contentLink, string language, string replacementLanguage, string[] languageFallback)
Parameters
Type |
Name |
Description |
ContentReference |
contentLink |
|
System.String |
language |
|
System.String |
replacementLanguage |
|
System.String[] |
languageFallback |
|
ContentLanguageSetting(ContentReference, String, String, String[], Boolean)
Declaration
public ContentLanguageSetting(ContentReference contentLink, string language, string replacementLanguage, string[] languageFallback, bool active)
Parameters
Type |
Name |
Description |
ContentReference |
contentLink |
|
System.String |
language |
|
System.String |
replacementLanguage |
|
System.String[] |
languageFallback |
|
System.Boolean |
active |
|
Properties
DefinedOnContent
Declaration
public ContentReference DefinedOnContent { get; set; }
Property Value
IsActive
Gets or sets a value indicating whether this language is active.
Declaration
public bool IsActive { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
LanguageBranch
For the language branch this setting has been defined
Declaration
public string LanguageBranch { get; set; }
Property Value
Type |
Description |
System.String |
|
LanguageBranchFallback
A list of fallback languages when a language is missing
Declaration
public string[] LanguageBranchFallback { get; set; }
Property Value
Type |
Description |
System.String[] |
|
ReplacementLanguageBranch
The default language if a language selection has not been done
Declaration
public string ReplacementLanguageBranch { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
CreateWritableClone()
Declaration
public ContentLanguageSetting CreateWritableClone()
Returns
Delete()
Delete settings for the current language branch and page
Declaration
[Obsolete("CRUD operations have moved to ContentLanguageSettingRepository")]
public void Delete()
ListTree()
Declaration
[Obsolete("CRUD operations have moved to ContentLanguageSettingRepository")]
public static IList<ContentLanguageSetting[]> ListTree()
Returns
Load(ContentReference)
Load all settings for a particular page
Declaration
[Obsolete("CRUD operations have moved to ContentLanguageSettingRepository")]
public static ContentLanguageSetting[] Load(ContentReference contentLink)
Parameters
Type |
Name |
Description |
ContentReference |
contentLink |
The page to load settings for
|
Returns
Type |
Description |
ContentLanguageSetting[] |
Returns array of PageLanguageSettings, empty array if no settings has been defined
|
Load(ContentReference, String)
Declaration
[Obsolete("CRUD operations have moved to ContentLanguageSettingRepository")]
public static ContentLanguageSetting Load(ContentReference contentLink, string language)
Parameters
Returns
MakeReadOnly()
Declaration
public void MakeReadOnly()
Save()
Save changes for the current language branch and page
Declaration
[Obsolete("CRUD operations have moved to ContentLanguageSettingRepository")]
public void Save()
Events
ContentLanguageSettingDeleted
Trigged when content language setting have been deleted.
Declaration
[Obsolete("Events have moved to ContentLanguageSettingRepository")]
public static event EventHandler<ContentLanguageSettingEventArgs> ContentLanguageSettingDeleted
Event Type
ContentLanguageSettingDeleting
Trigged when content language setting are about to be deleted.
Declaration
[Obsolete("Events have moved to ContentLanguageSettingRepository")]
public static event EventHandler<ContentLanguageSettingEventArgs> ContentLanguageSettingDeleting
Event Type
ContentLanguageSettingSaved
Trigged when content language setting have been saved.
Declaration
[Obsolete("Events have moved to ContentLanguageSettingRepository")]
public static event EventHandler<ContentLanguageSettingEventArgs> ContentLanguageSettingSaved
Event Type
ContentLanguageSettingSaving
Trigged when content language setting are about to be saved.
Declaration
[Obsolete("Events have moved to ContentLanguageSettingRepository")]
public static event EventHandler<ContentLanguageSettingEventArgs> ContentLanguageSettingSaving
Event Type
Explicit Interface Implementations
IReadOnly.CreateWritableClone()
Declaration
object IReadOnly.CreateWritableClone()
Returns
Type |
Description |
System.Object |
|
Implements
Extension Methods