Update the record for a group in the repository

Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2017.3.160.836 (2017.3.160.0836)

Syntax

C#
public Group UpdateGroup(
	Group group,
	Options options
)
Visual Basic
Public Function UpdateGroup ( _
	group As Group, _
	options As Options _
) As Group
Visual C++
public:
Group^ UpdateGroup(
	Group^ group, 
	Options^ options
)

Parameters

group
Type: Perforce.P4..::..Group
Group specification for the group being updated
options
Type: Perforce.P4..::..Options
optional flags

Return Value

The Group object if new group was saved, null if creation failed

Examples

To add the user 'Carol' to the group 'Mygroup':
CopyC#
string targetGroup = "Mygroup";
Group group = GetGroup(targetGroup, null);
group.UserNames.Add("Carol");
_repository.UpdateGroup(group);

See Also