Share via


Term.Deprecate method

Deprecates or enables the current Term object.

Namespace:  Microsoft.SharePoint.Client.Taxonomy
Assembly:  Microsoft.SharePoint.Client.Taxonomy (in Microsoft.SharePoint.Client.Taxonomy.dll)

Syntax

'Declaration
Public Sub Deprecate ( _
    doDeprecate As Boolean _
)
'Usage
Dim instance As Term
Dim doDeprecate As Boolean

instance.Deprecate(doDeprecate)
public void Deprecate(
    bool doDeprecate
)

Parameters

  • doDeprecate
    Type: System.Boolean

    Whether to deprecate or enable this Term.

Exceptions

Exception Condition
UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

TermStoreOperationException

This operation is invalid in the orphaned terms TermSet object.The operation failed.

Remarks

Use of this method requires TaxonomyRights.EditTerm permission. Call the CommitAll() method to save this change to the database.

See also

Reference

Term class

Term members

Microsoft.SharePoint.Client.Taxonomy namespace

IsDeprecated