다음을 통해 공유


Term.Deprecate Method

Deprecates or enables the current Term object.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.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.Taxonomy Namespace

IsDeprecated