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)
Syntax
'Declaration
Public Overrides Property Name As String
Get
Set
'Usage
Dim instance As TermSet
Dim value As String
value = instance.Name
instance.Name = value
public override string Name { 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 value is invalid. It probably contains invalid characters or is too long. |
TermStoreOperationException | Renaming a system TermSet is disallowed. |
TermStoreOperationException | This operation is invalid in the Orphaned terms TermSet. The operation failed. |
ArgumentNullException | The name cannot be a null reference (Nothing in Visual Basic) or empty. |
Remarks
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.
See Also
Reference
Microsoft.SharePoint.Taxonomy Namespace
WorkingLanguage()
DefaultLanguage()