Share via


TermStore.DeleteLanguage method

Deletes a working language from the TermStore object.

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

Syntax

'Declaration
Public Sub DeleteLanguage ( _
    lcid As Integer _
)
'Usage
Dim instance As TermStore
Dim lcid As Integer

instance.DeleteLanguage(lcid)
public void DeleteLanguage(
    int lcid
)

Parameters

  • lcid
    Type: System.Int32

    locale ID for the language to be deleted

Exceptions

Exception Condition
TermStoreOperationException

The last language cannot be deleted.

TermStoreOperationException

The default language cannot be deleted.

UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

Remarks

The language being deleted cannot be the DefaultLanguage or the last language in the Languages collection. The current user must have TaxonomyRights.ManageTermStore permission to use this method. Call the CommitAll() method to save this change to the database.

See also

Reference

TermStore class

TermStore members

Microsoft.SharePoint.Client.Taxonomy namespace