Share via


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

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 Microsoft .NET Framework 3.5, GetSupportedLcidFromCulture returns -1.

See Also

Reference

PSSupportedLanguages Class

PSSupportedLanguages Members

Microsoft.Office.Project.Server.Library Namespace