Try our conversational search powered by Generative AI!

Class ContentLanguageEventArgs

EventArgs used with Content Language related events

Inheritance
System.Object
System.EventArgs
ContentLanguageEventArgs
Inherited Members
System.EventArgs.Empty
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
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class ContentLanguageEventArgs : ContentEventArgs

Constructors

ContentLanguageEventArgs(IContent)

Initializes a new instance of the ContentLanguageEventArgs class.

Declaration
public ContentLanguageEventArgs(IContent content)
Parameters
Type Name Description
IContent content

The page.

Properties

IsMasterLanguageBranch

Gets a value indicating whether this instance is master language branch.

Declaration
public bool IsMasterLanguageBranch { get; }
Property Value
Type Description
System.Boolean

true if this instance is master language branch; otherwise, false.

Language

The current language for the content instance.

Declaration
public CultureInfo Language { get; }
Property Value
Type Description
System.Globalization.CultureInfo
Remarks

If the content does not implement ILocale (or ILocalizable) null is retuned.

MasterLanguage

The current master language for the content instance.

Declaration
public CultureInfo MasterLanguage { get; }
Property Value
Type Description
System.Globalization.CultureInfo
Remarks

If the content does not implement ILocale (or ILocalizable) null is retuned.

Extension Methods