Term.Move method (TermSet)
Moves the current Term object to the root of the specified TermSet object
Namespace: Microsoft.SharePoint.Taxonomy
Assembly: Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)
Syntax
'Declaration
Public Sub Move ( _
parentTermSet As TermSet _
)
'Usage
Dim instance As Term
Dim parentTermSet As TermSet
instance.Move(parentTermSet)
public void Move(
TermSet parentTermSet
)
Parameters
parentTermSet
Type: Microsoft.SharePoint.Taxonomy.TermSetThe parent TermSet object
Exceptions
Exception | Condition |
---|---|
UnauthorizedAccessException | The current user has insufficient permissions to perform this operation. |
ArgumentNullException | The new parent TermSet object is a null reference (Nothing in Visual Basic) |
TermStoreOperationException | The Keyword TermSet object only allows a flat list of Terms. |
TermStoreOperationException | Moving to a TermSet that has one or more reused instances of the current Term is disallowed. |
TermStoreOperationException | This operation is invalid in the orphaned terms TermSet.The operation failed. |
Remarks
This operation moves the current Term object to become a child of TermSet. Use the [M:Microsoft.SharePoint.TaxonomyTerm.Move(T:Microsoft.SharePoint.Taxonomy.Term)] method to move the Term to become a child of another Term.
The current user must have TaxonomyRights.EditTerm permission on both the current Term and the new parent TermSet to use this method. Call the CommitAll() to save this change to the database.