Class ContentLanguageEventArgs
EventArgs used with Content Language related events
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: 9.12.2Syntax
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 |
|
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.
LanguageBranch
The id for this language branch
Declaration
[Obsolete("Use property Language instead.")]
public string LanguageBranch { get; }
Property Value
Type | Description |
---|---|
System.String |
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.
MasterLanguageBranch
The id for the master language branch
Declaration
[Obsolete("Use property MasterLangauge instead")]
public string MasterLanguageBranch { get; }
Property Value
Type | Description |
---|---|
System.String |