다음을 통해 공유


Label.Delete Method

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.

See Also

Reference

Label Class

Label Members

Microsoft.SharePoint.Taxonomy Namespace

Term