Group.Name Property

Gets or sets the name of this Group 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 Group
Dim value As String

value = instance.Name

instance.Name = value
public override string Name { get; set; }

Property Value

Type: System.String
The name of this group

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.

ArgumentException

Group names must be unique.

ArgumentNullException

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

TermStoreOperationException

Renaming a system Group is disallowed.

Remarks

There is a single Group name across all LCIDs, and this name must be unique within the TermStore object. The name cannot exceed 255 characters, and it cannot contain any of the following illegal character: ; " < > | & tab

The current user must have TaxonomyRights.EditGroup permission to set this property. Call the CommitAll() method to save this change to the database.

See Also

Reference

Group Class

Group Members

Microsoft.SharePoint.Taxonomy Namespace