다음을 통해 공유


TermStore.DeleteTermStoreAdministrator Method

Deletes a Term Store Administrator from the TermStore.

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

Syntax

'Declaration
Public Sub DeleteTermStoreAdministrator ( _
    principalName As String _
)
'Usage
Dim instance As TermStore
Dim principalName As String

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

Parameters

  • principalName
    Type: System.String

    The login name of the user to be removed as a Term Store Administrator

Exceptions

Exception Condition
ArgumentException

The specified user is not a term store administrator.Deletion of this user as a term store administrator failed.

UnauthorizedAccessException

The current user has insufficientpermissions to perform this operation.

Remarks

Term Store Administrators have the following permissions on the term store:ManageTermStore. The current user must have TaxonomyRights.AddManageTermStorePermissions permission to use this method. Call the CommitAll() method to save this change to the database.

See Also

Reference

TermStore Class

TermStore Members

Microsoft.SharePoint.Taxonomy Namespace

AddTermStoreAdministrator(String)

TermStoreAdministrators

TaxonomyRights