Class ILanguageBranchRepositoryExtensions
Contains extension methods for ILanguageBranchRepository.
Inheritance
System.Object
ILanguageBranchRepositoryExtensions
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: 8.11.0Syntax
public static class ILanguageBranchRepositoryExtensions
Methods
Load(ILanguageBranchRepository, String)
Loads the specified language branch with specified culture name.
Declaration
public static LanguageBranch Load(this ILanguageBranchRepository languageBranchRepository, string cultureName)
Parameters
Type | Name | Description |
---|---|---|
ILanguageBranchRepository | languageBranchRepository | The language branch repository. |
System.String | cultureName | The name of the culture, e.g. "en" |
Returns
Type | Description |
---|---|
LanguageBranch |
Remarks
Unlike Load(CultureInfo) this method does not throw exception for invalid language codes. Instead null is returned.