Share via


TermStore.DefaultLanguage property

Gets or sets the LCID of the default working language for the current TermStore object.

Namespace:  Microsoft.SharePoint.Client.Taxonomy
Assembly:  Microsoft.SharePoint.Client.Taxonomy (in Microsoft.SharePoint.Client.Taxonomy.dll)

Syntax

'Declaration
Public Property DefaultLanguage As Integer
    Get
    Set
'Usage
Dim instance As TermStore
Dim value As Integer

value = instance.DefaultLanguage

instance.DefaultLanguage = value
public int DefaultLanguage { get; set; }

Property value

Type: System.Int32
The LCID of the default working language for this TermStore

Remarks

The DefaultLanguage is one of the LCIDs in the Languages collection. Attempting to set a value that is not in the Languages collection automatically adds it to the Languages collection. Setting a new DefaultLanguage value is an expensive operation which will create a new Label object for each Term in the TermStore if one does not already exist for the LCID of the new DefaultLanguage. If a new Label must be created on a Term, the value will be a copy of the value of the Label on that Term for the former DefaultLanguage. Generally the DefaultLanguage is used as the fallback language if a WorkingLanguage has not been specified for the current TermStore instance. For temporary language changesit is prefererable to set the WorkingLanguage. This method automatically calls CommitAll(), so any changes that are pending prior calling this method will automatically be persisted to the database. The current user must have TaxonomyRights.ManageTermStore permission in order to use this method.

See also

Reference

TermStore class

TermStore members

Microsoft.SharePoint.Client.Taxonomy namespace