Share via


Group.AddContributor method

Adds a contributor to the Group object.

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

Syntax

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

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

Parameters

  • principalName
    Type: System.String

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

Exceptions

Exception Condition
ArgumentException

The user name is too long

ArgumentException

The user name cannot be found.

ArgumentNullException

principalName is null or empty

UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

Remarks

Contributors have these permissions on the group.

  • TaxonomyRights.EditTerm

  • TaxonomyRights.EditTermSet

  • TaxonomyRights.Contributor

Contributors can read, create, modify and delete Term instances and TermSet instances within the Group.The current user must have the TaxonomyRights.AddTermSetEditPermissions permission in this Group in order to use this method. Call the CommitAll() metho to save this change to the database.

See also

Reference

Group class

Group members

Microsoft.SharePoint.Taxonomy namespace

DeleteContributor(String)

Contributors

TaxonomyRights