Share via


Group.DeleteContributor method

Deletes a contributor from the Group object.

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

Syntax

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

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

Parameters

  • principalName
    Type: System.String

    The login name of the user to be removed as a contributor

Exceptions

Exception Condition
ArgumentException

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

UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

Remarks

The current user must have TaxonomyRights.AddTermSetEditPermissions 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