TermStore.DeleteLanguage(Int32) Method

Definition

Deletes a working language from the TermStore object.

public:
 void DeleteLanguage(int lcid);
[Microsoft.SharePoint.Client.ClientCallable(ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful)]
public void DeleteLanguage (int lcid);
member this.DeleteLanguage : int -> unit
Public Sub DeleteLanguage (lcid As Integer)

Parameters

lcid
Int32

locale ID for the language to be deleted

Attributes
ClientCallableAttribute

Exceptions

The default language cannot be deleted.

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.

Applies to