TermSet.Copy TermSet.Copy TermSet.Copy Method

Definition

Creates a copy of the TermSet object under the current parent Group object.

public:
 Microsoft::SharePoint::Taxonomy::TermSet ^ Copy();
[Microsoft.SharePoint.Client.ClientCallableMethod(ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful, ReturnObjectIdentity=true)]
public Microsoft.SharePoint.Taxonomy.TermSet Copy ();
Public Function Copy () As TermSet
Returns

A new TermSet object that is a copy of the original TermSet.

Exceptions

The current user has insufficient permissions to perform this operation.

Remarks

All Term objects in the current TermSet become reused by the new TermSet. The copied TermSet will have a variation of the original TermSet name, such as having 'Copy of ' prefixed to the name. Copy is not permitted on any system TermSet objectssuch as the Keywords TermSet or the Orphaned TermSet. The current user must have TaxonomyRights.Edit permission to use this method. Call the Microsoft.SharePoint.Taxonomy.TermStoreobject.CommitAll method to save this change to the database.

Applies to