Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ILanguageRepository

    Namespace: Umbraco.Cms.Core.Persistence.Repositories
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ILanguageRepository : IReadWriteQueryRepository<int, ILanguage>, IReadRepository<int, ILanguage>, IWriteRepository<ILanguage>, IQueryRepository<ILanguage>, IRepository

    Methods

    View Source

    GetByIsoCode(String)

    Declaration
    ILanguage GetByIsoCode(string isoCode)
    Parameters
    Type Name Description
    System.String isoCode
    Returns
    Type Description
    ILanguage
    View Source

    GetDefaultId()

    Gets the default language identifier.

    Declaration
    int? GetDefaultId()
    Returns
    Type Description
    System.Nullable<System.Int32>
    Remarks

    This can be optimized and bypass all deep cloning.

    View Source

    GetDefaultIsoCode()

    Gets the default language ISO code.

    Declaration
    string GetDefaultIsoCode()
    Returns
    Type Description
    System.String
    Remarks

    This can be optimized and bypass all deep cloning.

    View Source

    GetIdByIsoCode(String, Boolean)

    Gets a language identifier from its ISO code.

    Declaration
    int? GetIdByIsoCode(string isoCode, bool throwOnNotFound = true)
    Parameters
    Type Name Description
    System.String isoCode
    System.Boolean throwOnNotFound
    Returns
    Type Description
    System.Nullable<System.Int32>
    Remarks

    This can be optimized and bypass all deep cloning.

    View Source

    GetIsoCodeById(Nullable<Int32>, Boolean)

    Gets a language ISO code from its identifier.

    Declaration
    string GetIsoCodeById(int? id, bool throwOnNotFound = true)
    Parameters
    Type Name Description
    System.Nullable<System.Int32> id
    System.Boolean throwOnNotFound
    Returns
    Type Description
    System.String
    Remarks

    This can be optimized and bypass all deep cloning.

    View Source

    GetIsoCodesByIds(ICollection<Int32>, Boolean)

    Declaration
    string[] GetIsoCodesByIds(ICollection<int> ids, bool throwOnNotFound = true)
    Parameters
    Type Name Description
    ICollection<System.Int32> ids
    System.Boolean throwOnNotFound
    Returns
    Type Description
    System.String[]
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetByIsoCode(String)
      • GetDefaultId()
      • GetDefaultIsoCode()
      • GetIdByIsoCode(String, Boolean)
      • GetIsoCodeById(Nullable<Int32>, Boolean)
      • GetIsoCodesByIds(ICollection<Int32>, Boolean)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX