View Source
  Interface ILanguageRepository
  
  
  
  
  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
  
  
    View Source
  
  GetDefaultId()
  Gets the default language identifier.
Declaration
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Nullable<System.Int32> |  | 
    
  
  
  
  
    View Source
  
  GetDefaultIsoCode()
  Gets the default language ISO code.
Declaration
  
    string GetDefaultIsoCode()
   
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.String |  | 
    
  
  
  
  
    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> |  | 
    
  
  
  
  
    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 |  | 
    
  
  
  
  
    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[] |  |