TermSet.Move method

Moves the current TermSet into a different Group object,

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

Syntax

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

instance.Move(targetGroup)
public void Move(
    Group 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 Group to the target Group. Move is not permitted on any system TermSet objectssuch as the Keywords TermSet or the Orphaned TermSet. Moving a TermSet to the System Group 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.Taxonomy namespace