TermSetItem.ReuseTerm method
Creates a new reused Term object below this TaxonomyItem object based on a sourceTerm.
Namespace: Microsoft.SharePoint.Client.Taxonomy
Assembly: Microsoft.SharePoint.Client.Taxonomy (in Microsoft.SharePoint.Client.Taxonomy.dll)
Syntax
'Declaration
Public Function ReuseTerm ( _
sourceTerm As Term, _
reuseBranch As Boolean _
) As Term
'Usage
Dim instance As TermSetItem
Dim sourceTerm As Term
Dim reuseBranch As Boolean
Dim returnValue As Term
returnValue = instance.ReuseTerm(sourceTerm, _
reuseBranch)
public Term ReuseTerm(
Term sourceTerm,
bool reuseBranch
)
Parameters
sourceTerm
Type: Microsoft.SharePoint.Client.Taxonomy.TermThe source Term object for the reused Term
reuseBranch
Type: System.BooleanThe source TermSetItem object and its child Term objects
Return value
Type: Microsoft.SharePoint.Client.Taxonomy.Term
The newly created reused Term object
Remarks
Reuse a term from a different term set to become a child of the current TermSetItem. The target term set cannot be the Keyword or Orphaned Term Set. Keywords cannot be reused.
The current user must have TaxonomyRights.EditTerm permission in order to use this method. CommitAll() must be called in order to save this change to the database.