Class ILanguageSelectorExtensions
Extends ILanguageSelector with additional methods.
Inheritance
System.Object
ILanguageSelectorExtensions
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.Core
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public static class ILanguageSelectorExtensions
Methods
LoadLanguage(ILanguageSelector, LanguageSelectorContext)
Selects language branch based on a page link only, used for example when creating new pages
Declaration
[Obsolete("Simplify code in content providers to only use the Language property to get requested language (ILanguageSelector.Language). Removed usage of LanguageSelectorContext since fallback languages are now handled outside the provider.")]
public static void LoadLanguage(this ILanguageSelector languageSelector, LanguageSelectorContext context)
Parameters
Type | Name | Description |
---|---|---|
ILanguageSelector | languageSelector | The language selector that is extended. |
LanguageSelectorContext | context | The context which the method executes in |
SelectPageLanguage(ILanguageSelector, LanguageSelectorContext)
Selects which language branch of a page that should be loaded, used for examples in listings
Declaration
[Obsolete("Simplify code in content providers to only use the Language property to get requested language (ILanguageSelector.Language). Removed usage of LanguageSelectorContext since fallback languages are now handled outside the provider.")]
public static void SelectPageLanguage(this ILanguageSelector languageSelector, LanguageSelectorContext args)
Parameters
Type | Name | Description |
---|---|---|
ILanguageSelector | languageSelector | The language selector that is extended. |
LanguageSelectorContext | args | Argument containg information about the actual page and language that should be loaded |
SetInitializedLanguageBranch(ILanguageSelector, LanguageSelectorContext)
Sets SelectedLanguage property with language branch that selector was initialized with, if any.
Declaration
[Obsolete("Simplify code in content providers to only use the Language property to get requested language (ILanguageSelector.Language). Removed usage of LanguageSelectorContext since fallback languages are now handled outside the provider.")]
public static void SetInitializedLanguageBranch(this ILanguageSelector languageSelector, LanguageSelectorContext args)
Parameters
Type | Name | Description |
---|---|---|
ILanguageSelector | languageSelector | The language selector that is extended. |
LanguageSelectorContext | args | the context to operate on |