TermSetItem.ReuseTermWithPinning method
Creates a new Term below a TaxonomyItem instance based on a sourceTerm and makes the Term pinned so that only the local custom properties, IsAvailableForTagging, and custom sort order for the TermSet can be changed in the TermSet object.
Namespace: Microsoft.SharePoint.Taxonomy
Assembly: Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)
Syntax
'Declaration
Public Function ReuseTermWithPinning ( _
sourceTerm As Term _
) As Term
'Usage
Dim instance As TermSetItem
Dim sourceTerm As Term
Dim returnValue As Term
returnValue = instance.ReuseTermWithPinning(sourceTerm)
public Term ReuseTermWithPinning(
Term sourceTerm
)
Parameters
sourceTerm
Type: Microsoft.SharePoint.Taxonomy.TermThe source term.
Return value
Type: Microsoft.SharePoint.Taxonomy.Term
The reused term.
Exceptions
Exception | Condition |
---|---|
System.UnauthorizedAccessException | The current user has insufficient permissions to perform this operation. The user needs to have the EditTerm permission. |
Remarks
This method cannot be called on an orphaned term set or hash tag term set.