Share via


PSSupportedLanguages.GetSupportedLcidFromLcid method

Determines the LCID that Project Server supports, that is nearest to the specified LCID.

Namespace:  Microsoft.Office.Project.Server.Library
Assembly:  Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)

Syntax

'Declaration
Public Shared Function GetSupportedLcidFromLcid ( _
    lcid As Integer _
) As Integer
'Usage
Dim lcid As Integer
Dim returnValue As Integer

returnValue = PSSupportedLanguages.GetSupportedLcidFromLcid(lcid)
public static int GetSupportedLcidFromLcid(
    int lcid
)

Parameters

Return value

Type: System.Int32
The supported LCID that most closely corresponds to the specified lcid value.

Remarks

For example, the LCID of French–Canada (fr-CA) is 3084. The value returned from GetSupportedLcidFromLcid(3084) is 1036, which is French–France (fr-FR).

If the language of the two-letter ISO name that corresponds to the specified LCID is not supported, or if the lcid parameter is less than 0, GetSupportedLcidFromLcid returns -1.

For supported LCIDs, see PSSupportedLanguages.

See also

Reference

PSSupportedLanguages class

PSSupportedLanguages members

Microsoft.Office.Project.Server.Library namespace