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()
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class ContentLanguageSetting : IReadOnly<ContentLanguageSetting>, IReadOnly

Constructors

ContentLanguageSetting()

Declaration
public ContentLanguageSetting()

ContentLanguageSetting(ContentReference, String)

Declaration
public ContentLanguageSetting(ContentReference contentLink, string language)
Parameters
Type Name Description
ContentReference contentLink
System.String language

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
Type Description
ContentReference

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
Type Description
ContentLanguageSetting

MakeReadOnly()

Declaration
public void MakeReadOnly()

Explicit Interface Implementations

IReadOnly.CreateWritableClone()

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

Implements

Extension Methods