UtilCultureSetProcessPreferredUILanguages(String) Method
Sets the preferred UI languages for the current process.
To retrieve the preferred UI languages for the current process,
call
GetProcessPreferredUILanguages function.
Namespace: DevCase.Core.Application.GlobalizationAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static int SetProcessPreferredUILanguages(
params string[] langNames
)
Public Shared Function SetProcessPreferredUILanguages (
ParamArray langNames As String()
) As Integer
Dim langNames As String()
Dim returnValue As Integer
returnValue = UtilCulture.SetProcessPreferredUILanguages(langNames)
public:
static int SetProcessPreferredUILanguages(
... array<String^>^ langNames
)
static member SetProcessPreferredUILanguages :
langNames : string[] -> int
No code example is currently available or this language may not be supported.
- langNames String
-
The name of the languages, in the format languagecode2-country/regioncode2 (eg. "en-US")
Int32
Returns the amount of languages that were successfully set.
This is a code example.
No code example is currently available or this language may not be supported.
Dim langNames As String() = {"en-US", "es-ES", "it-IT", "de-DE", "fr-FR"}
Dim successfulLangs As Integer = SetProcessPreferredUILanguages(langNames)
Console.WriteLine($"{NameOf(successfulLangs)}: {successfulLangs}")
Dim currentPreferredLangs As ReadOnlyCollection(Of CultureInfo) = GetProcessPreferredUILanguages()
Console.WriteLine($"{NameOf(currentPreferredLangs)}: {String.Join(", ", currentPreferredLangs.Select(Function(ci) ci.Name))}")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.