TermStore.DefaultLanguage TermStore.DefaultLanguage TermStore.DefaultLanguage Property

Definition

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

public:
 property int DefaultLanguage { int get(); void set(int value); };
[Microsoft.SharePoint.Client.ClientCallable(ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful)]
public int DefaultLanguage { get; set; }
Public Property DefaultLanguage As Integer
Property Value

The LCID of the default working language for this TermStore

Exceptions

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.

Applies to