다음을 통해 공유


Group.Delete Method

Deletes this Group from the TermStore object.

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

Syntax

'Declaration
Public Overrides Sub Delete
'Usage
Dim instance As Group

instance.Delete()
public override void Delete()

Exceptions

Exception Condition
TermStoreOperationException

A Group cannot be deleted unless it is empty and it is not the system Group.

UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

Remarks

The delete operation will fail if the Group object is not empty. The delete operation will fail if the Group object is the system Group.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

Group Class

Group Members

Microsoft.SharePoint.Taxonomy Namespace

IsSystemGroup

TermSets