Compartilhar via


Group.DeleteGroupManager Method

Deletes a group manager from the Group object.

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

Syntax

'Declaration
Public Sub DeleteGroupManager ( _
    principalName As String _
)
'Usage
Dim instance As Group
Dim principalName As String

instance.DeleteGroupManager(principalName)
public void DeleteGroupManager(
    string principalName
)

Parameters

  • principalName
    Type: System.String

    The login name of the user to be removed as a group manager

Exceptions

Exception Condition
ArgumentException

The specified user is not a group manager on this group. Deletion of this user as a group manager failed.

UnauthorizedAccessException

Remarks

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

AddContributor(String)

Contributors

TaxonomyRights