Export (0) Print
Expand All

Term.SetDescription method

Sets the LCID-specific description of this Term object.

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

public void SetDescription(
	string description,
	int lcid
)

Parameters

description
Type: System.String

The new description

lcid
Type: System.Int32

The LCID to set description for

ExceptionCondition
ArgumentOutOfRangeException

The LCID is not valid.

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 description is invalid.

The description must be non-empty and cannot exceed 1000 characters, and cannot contain any of the following characters: [\t].

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

Show:
© 2015 Microsoft