Update the record for a group in the repository
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
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
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);