다음을 통해 공유


TermStore.DefaultLanguage Property

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

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.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

Exceptions

Exception Condition
UnauthorizedAccessException

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.Taxonomy Namespace

Languages

AddLanguage(Int32)

DeleteLanguage(Int32)

WorkingLanguage