A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://apidocs.umbraco.com/v15/csharp/api/Umbraco.Cms.Core.Services.ILanguageService.html below:

View Source Interface ILanguageService Namespace: Umbraco.Cms.Core.Services Assembly: Umbraco.Core.dll Syntax
public interface ILanguageService
Methods View Source CreateAsync(ILanguage, Guid)

Creates a new ILanguage object

Declaration
Task<Attempt<ILanguage, LanguageOperationStatus>> CreateAsync(ILanguage language, Guid userKey)
Parameters Type Name Description ILanguage language

ILanguage to create

Guid userKey

Key of the user creating the language

Returns View Source DeleteAsync(String, Guid)

Deletes a ILanguage by removing it and its usages from the db

Declaration
Task<Attempt<ILanguage, LanguageOperationStatus>> DeleteAsync(string isoCode, Guid userKey)
Parameters Type Name Description System.String isoCode

The ISO code of the ILanguage to delete

Guid userKey

Key of the user deleting the language

Returns View Source GetAllAsync()

Gets all available languages

Declaration
Task<IEnumerable<ILanguage>> GetAllAsync()
Returns View Source GetAsync(String)

Gets a ILanguage by its iso code

Declaration
Task<ILanguage> GetAsync(string isoCode)
Parameters Type Name Description System.String isoCode

Iso Code of the language (ie. en-US)

Returns View Source GetDefaultIsoCodeAsync()

Gets the default language ISO code.

Declaration
Task<string> GetDefaultIsoCodeAsync()
Returns Type Description Task<System.String>

The default language ISO code

View Source GetDefaultLanguageAsync()

Gets the default ILanguage

Declaration
Task<ILanguage> GetDefaultLanguageAsync()
Returns View Source GetIsoCodesByIdsAsync(ICollection<Int32>)

Retrieves the isoCodes of configured languages by their Ids

Declaration
Task<string[]> GetIsoCodesByIdsAsync(ICollection<int> ids)
Parameters Type Name Description ICollection<System.Int32> ids

The ids of the configured ILanguages

Returns Type Description Task<System.String[]>

The ISO codes of the ILanguages

View Source GetMultipleAsync(IEnumerable<String>)

Gets all languages with the given iso codes

Declaration
Task<IEnumerable<ILanguage>> GetMultipleAsync(IEnumerable<string> isoCodes)
Parameters Type Name Description IEnumerable<System.String> isoCodes Returns View Source UpdateAsync(ILanguage, Guid)

Updates an existing ILanguage object

Declaration
Task<Attempt<ILanguage, LanguageOperationStatus>> UpdateAsync(ILanguage language, Guid userKey)
Parameters Type Name Description ILanguage language

ILanguage to update

Guid userKey

Key of the user saving the language

Returns

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4