PSSupportedLanguages.GetSupportedLcidFromCulture method
Determines the supported LCID that is nearest to the specified culture name.
Namespace: Microsoft.Office.Project.Server.Library
Assembly: Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)
Syntax
'Declaration
Public Shared Function GetSupportedLcidFromCulture ( _
cultureName As String _
) As Integer
'Usage
Dim cultureName As String
Dim returnValue As Integer
returnValue = PSSupportedLanguages.GetSupportedLcidFromCulture(cultureName)
public static int GetSupportedLcidFromCulture(
string cultureName
)
Parameters
cultureName
Type: System.StringThe culture name. For the supported culture names, see PSSupportedLanguages.
Return value
Type: System.Int32
The LCID number that is closest to the specified culture name.
Remarks
For example, the LCID of French–Canada (fr-CA) is 3084. The value that is returned from GetSupportedLcidFromCulture("fr-ca") is 1036, which is French–France (fr-FR).
If the specified culture name is not supported by the .NET Framework 4, GetSupportedLcidFromCulture returns -1.