Partager 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