Partilhar via


Label.SetAsDefaultForLanguage Method

Sets the current Label object as the default label for its language.

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

Syntax

'Declaration
Public Sub SetAsDefaultForLanguage
'Usage
Dim instance As Label

instance.SetAsDefaultForLanguage()
public void SetAsDefaultForLanguage()

Exceptions

Exception Condition
UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

Remarks

The current user must have TaxonomyRights.EditTerm permission in order to use this method. Call the CommitAll() method to save this change to the database.

See Also

Reference

Label Class

Label Members

Microsoft.SharePoint.Taxonomy Namespace