ILocaleManagerGetLocale Method (IUserContext, String) |
Get a locale object by ISO code.
This code is a combination of "ISO 639-1" (language code)
and "ISO 3166-1 alpha-2" (country code).
E.g. en-GB and sv-SE.
Language codes are matched to first locale of the same language.
For example "en" may be matched to "en-GB".
Namespace: ArtDatabanken.DataAssembly: ArtDatabanken.Data (in ArtDatabanken.Data.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax ILocale GetLocale(
IUserContext userContext,
string localeISOCode
)
Function GetLocale (
userContext As IUserContext,
localeISOCode As String
) As ILocale
ILocale^ GetLocale(
IUserContext^ userContext,
String^ localeISOCode
)
abstract GetLocale :
userContext : IUserContext *
localeISOCode : string -> ILocale
Parameters
- userContext
- Type: ArtDatabanken.DataIUserContext
User context. - localeISOCode
- Type: SystemString
ISO code for requested locale.
Return Value
Type:
ILocaleRequested locale object.
See Also