LocaleManagerGetLocale 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 public virtual ILocale GetLocale(
IUserContext userContext,
string ISOCode
)
Public Overridable Function GetLocale (
userContext As IUserContext,
ISOCode As String
) As ILocale
public:
virtual ILocale^ GetLocale(
IUserContext^ userContext,
String^ ISOCode
)
abstract GetLocale :
userContext : IUserContext *
ISOCode : string -> ILocale
override GetLocale :
userContext : IUserContext *
ISOCode : string -> ILocale
Parameters
- userContext
- Type: ArtDatabanken.DataIUserContext
User context. - ISOCode
- Type: SystemString
ISO code for requested locale.
Return Value
Type:
ILocaleRequested locale object
Implements
ILocaleManagerGetLocale(IUserContext, String)See Also