TermSetItem.ReuseTerm(Term, Boolean) TermSetItem.ReuseTerm(Term, Boolean) TermSetItem.ReuseTerm(Term, Boolean) Method

Definition

Creates a new reused Term object below this TaxonomyItem object based on a sourceTerm.

public:
 Microsoft::SharePoint::Taxonomy::Term ^ ReuseTerm(Microsoft::SharePoint::Taxonomy::Term ^ sourceTerm, bool reuseBranch);
[Microsoft.SharePoint.Client.ClientCallableMethod(ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful, ReturnObjectIdentity=true)]
public Microsoft.SharePoint.Taxonomy.Term ReuseTerm (Microsoft.SharePoint.Taxonomy.Term sourceTerm, bool reuseBranch);
Public Function ReuseTerm (sourceTerm As Term, reuseBranch As Boolean) As Term
Parameters
sourceTerm
Term Term Term

The source Term for the reused Term

reuseBranch
Boolean Boolean Boolean

Reuse the TermSetItem and its child Terms

Returns

The newly created reused Term

Exceptions

The current user has insufficient permissions to perform this operation.

This operation is invalid in the Orphaned Terms term set.The operation failed.

The source Term is a null reference (Nothing in Visual Basic) or invalid

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.

Applies to