TermSet.Name-Eigenschaft
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; }
Eigenschaftswert
Typ: System.String
Gibt String zurück.
Ausnahmen
Ausnahme | Bedingung |
---|---|
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 ein Nullverweis (Nothing in Visual Basic) or empty. |
Hinweise
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.
Siehe auch
Referenz
Microsoft.SharePoint.Taxonomy-Namespace
WorkingLanguage()
DefaultLanguage()