TermSet.Name property

Gets and sets the name for the current TermSet object.

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

public override string Name { get; set; }

Property value

Type: System.String
Returns String.


The current user has insufficient permissions to perform this operation.


The value is invalid. It probably contains invalid characters or is too long.


Renaming a system TermSet is disallowed.


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


The name cannot be a null reference (Nothing in Visual Basic) or empty.

Retrieving this property gets the name of the TermSet in the current WorkingLanguage() property. If there is no name available for the TermStore.WorkingLanguage, then the name for the DefaultLanguage() is returned. Setting this property sets the name for the current WorkingLanguage(). The name cannot exceed 255 characters, and it cannot contain any of the following illegal characters: ;"<>|&tab. Renaming is not permitted on any system TermSet objects such as the Keywords TermSet or the Orphaned terms TermSet. The current user must have TaxonomyRights.Edit permission to set this property. Call the CommitAll() method to save this change to the database.