다음을 통해 공유


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