Interface ILanguageBranchRepository
Defines the signature for a component that acts as a repository for LanguageBranch
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public interface ILanguageBranchRepository
Methods
Delete(Int32)
Deletes the LanguageBranch with specified id.
Declaration
void Delete(int languageBranchId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | languageBranchId | The language branch id. |
ListAll()
Lists all LanguageBranch instances that are defined.
Declaration
IList<LanguageBranch> ListAll()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<LanguageBranch> |
ListEnabled()
Lists all LanguageBranch instances that are defined and enabled.
Declaration
IList<LanguageBranch> ListEnabled()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<LanguageBranch> |
Load(CultureInfo)
Loads the LanguageBranch for the specified culture.
Declaration
LanguageBranch Load(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | The culture. |
Returns
Type | Description |
---|---|
LanguageBranch |
Load(Int32)
Loads the LanguageBranch with the specified identifier.
Declaration
LanguageBranch Load(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The id. |
Returns
Type | Description |
---|---|
LanguageBranch |
LoadFirstEnabledBranch()
Loads the first LanguageBranch that is Enabled.
Declaration
LanguageBranch LoadFirstEnabledBranch()
Returns
Type | Description |
---|---|
LanguageBranch |
Save(LanguageBranch)
Saves the specified LanguageBranch.
Declaration
void Save(LanguageBranch languageBranch)
Parameters
Type | Name | Description |
---|---|---|
LanguageBranch | languageBranch | The language branch. |