Share via


Term.DeleteCustomProperty method

Deletes a shared custom property from the current Term object.

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

Syntax

'Declaration
Public Overrides Sub DeleteCustomProperty ( _
    name As String _
)
'Usage
Dim instance As Term
Dim name As String

instance.DeleteCustomProperty(name)
public override void DeleteCustomProperty(
    string name
)

Parameters

Exceptions

Exception Condition
UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

TermStoreOperationException

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

ArgumentException

The custom property name is not valid, it contains invalid characters, or is too long.

ArgumentNullException

The custom property name is a null reference (Nothing in Visual Basic) or an empty string.

ArgumentException

Remarks

The name must be non-empty, cannot exceed 255 characters, and cannot contain any of the following characters: ;"<>|&tab

The current user must have TaxonomyRights.EditTerm permission in order to use this method. Call the CommitAll() method to save this change to the database.

See also

Reference

Term class

Term members

Microsoft.SharePoint.Taxonomy namespace