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: 7.19.2
Syntax
public class ContentLanguageSetting
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 |
|
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
Delete()
Delete settings for the current language branch and page
Declaration
ListTree()
Declaration
public static IList<ContentLanguageSetting[]> ListTree()
Returns
Load(ContentReference)
Load all settings for a particular page
Declaration
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
public static ContentLanguageSetting Load(ContentReference contentLink, string language)
Parameters
Returns
Save()
Save changes for the current language branch and page
Declaration
Events
ContentLanguageSettingDeleted
Trigged when content language setting have been deleted.
Declaration
public static event EventHandler<ContentLanguageSettingEventArgs> ContentLanguageSettingDeleted
Event Type
ContentLanguageSettingDeleting
Trigged when content language setting are about to be deleted.
Declaration
public static event EventHandler<ContentLanguageSettingEventArgs> ContentLanguageSettingDeleting
Event Type
ContentLanguageSettingSaved
Trigged when content language setting have been saved.
Declaration
public static event EventHandler<ContentLanguageSettingEventArgs> ContentLanguageSettingSaved
Event Type
ContentLanguageSettingSaving
Trigged when content language setting are about to be saved.
Declaration
public static event EventHandler<ContentLanguageSettingEventArgs> ContentLanguageSettingSaving
Event Type
Extension Methods