Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deletes the current Label object.
Namespace: Microsoft.SharePoint.Taxonomy
Assembly: Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)
Syntax
'Declaration
Public Sub Delete
'Usage
Dim instance As Label
instance.Delete()
public void Delete()
Exceptions
Exception | Condition |
---|---|
UnauthorizedAccessException | The current user has insufficient permissions to perform this operation. |
TermStoreOperationException | The default label for a Term object in the default language cannot be deleted. Deleting the last Label of a Term is disallowed. Please delete the Term instead. |
Remarks
The current user must have TaxonomyRights.EditTerm permission to use the method. Call the CommitAll() method to save this change to the database.