Export (0) Print
Expand All

TermStore.CreateGroup method (String, Guid)

SharePoint 2013

Creates a new Group object in a TermStore.

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

public Group CreateGroup(
	string name,
	Guid groupId
)

Parameters

name
Type: System.String

The name of the new Group being created.

groupId
Type: System.Guid

The ID of the new Group being created.

ExceptionCondition
UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

ArgumentException

The name parameter is invalid. It either 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.

The name cannot exceed 255 characters, and it cannot contain any of the following illegal characters: ; " < > | & tab.

In addition, the name must be a unique group name within the current TermStore.

The current user must have ManageTermStore permission in order to use this method.

CommitAll() must be called in order to save this change to the database.

Community Additions

ADD
Show:
© 2014 Microsoft