Partilhar via


TermSet.Description Property

Gets and sets the description for the current TermSet object.

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

Syntax

'Declaration
Public Property Description As String
    Get
    Set
'Usage
Dim instance As TermSet
Dim value As String

value = instance.Description

instance.Description = value
public string Description { get; set; }

Property Value

Type: System.String
Returns String.

Exceptions

Exception Condition
UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

ArgumentException

The input description value is too long or contains invalid characters.

TermStoreOperationException

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

Remarks

The description can be a null reference (Nothing in Visual Basic) or empty. The description cannot exceed 1000 characters, and it cannot contain any tab characters. The current user must have TaxonomyRights.Edit permission to use this method. Call the CommitAll() method to save this change to the database.

See Also

Reference

TermSet Class

TermSet Members

Microsoft.SharePoint.Taxonomy Namespace