Share via


TermSet.Move method

Moves the current TermSet into a different TermGroup object,

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

Syntax

'Declaration
Public Sub Move ( _
    targetGroup As TermGroup _
)
'Usage
Dim instance As TermSet
Dim targetGroup As TermGroup

instance.Move(targetGroup)
public void Move(
    TermGroup targetGroup
)

Parameters

Exceptions

Exception Condition
UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

ArgumentNullException

The targetGroup must not be a null reference (Nothing in Visual Basic)

TermStoreOperationException

Moving a system TermSet is disallowed.

TermStoreOperationException

Moving a TermSet to system Group is disallowed.

TermStoreOperationException

TermSet names must be unique within a Group.

TermStoreOperationException

This operation is invalid in the Orphaned terms TermSet. The operation failed.

Remarks

Moves the current TermSet and all of its child Term objects from the current TermGroup to the target TermGroup. Move is not permitted on any system TermSet objectssuch as the Keywords TermSet or the Orphaned TermSet. Moving a TermSet to the System TermGroup is also not permitted. The current user must have TaxonomyRights.Edit permission in the TermSet Group and in the targetGroup to use this method. Call the CommitAll() method to save this change to the database.

See also

Reference

TermSet class

TermSet members

Microsoft.SharePoint.Client.Taxonomy namespace