Share via


TaxonomyNavigation.GetNavigationLcidForWeb method

Returns the language code identifier (LCID) that the taxonomy navigation system will use when it reads the Term object for the specified SPWeb object.

Namespace:  Microsoft.SharePoint.Publishing.Navigation
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Shared Function GetNavigationLcidForWeb ( _
    web As SPWeb _
) As Integer
'Usage
Dim web As SPWeb
Dim returnValue As Integer

returnValue = TaxonomyNavigation.GetNavigationLcidForWeb(web)
public static int GetNavigationLcidForWeb(
    SPWeb web
)

Parameters

Return value

Type: System.Int32
LCID

Remarks

The GetNavigationLcidForWeb(SPWeb) method should be assigned as the TermStore.WorkingLanguage property when making changes to the NavigationTermSet object. If the variations feature is active, then this method is based on the Locale property. Otherwise, it returns the Language property.

See also

Reference

TaxonomyNavigation class

TaxonomyNavigation members

Microsoft.SharePoint.Publishing.Navigation namespace