TermSet.DeleteStakeholder method

Deletes a stakeholder from the TermSet object.

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

Syntax

'Declaration
Public Sub DeleteStakeholder ( _
    stakeholderName As String _
)
'Usage
Dim instance As TermSet
Dim stakeholderName As String

instance.DeleteStakeholder(stakeholderName)
public void DeleteStakeholder(
    string stakeholderName
)

Parameters

  • stakeholderName
    Type: System.String

    The name of an existing stakeholder for the current TermSet object.

Exceptions

Exception Condition
ArgumentException

A stakeholder with the specified name was not found.

UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

Remarks

The current user must have TaxonomyRights.Edit permission to use this method. Call the CommitAll() method to save this change to the database.

See also

Reference

TermSet class

TermSet members

Microsoft.SharePoint.Taxonomy namespace

AddStakeholder(String)

Stakeholders