RepositoryUpdateGroup Method (Group)
|
Update the record for a group in the repository
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.2.269.3570
Syntax public Group UpdateGroup(
Group group
)
Public Function UpdateGroup (
group As Group
) As Group
public:
Group^ UpdateGroup(
Group^ group
)
member UpdateGroup :
group : Group -> Group
Parameters
- group
- Type: Perforce.P4Group
Group specification for the group being updated
Return Value
Type:
GroupThe Group object if new group was saved, null if creation failed
Examples
To add the user 'Carol' to the group 'Mygroup':
string targetGroup = "Mygroup";
Group group = GetGroup(targetGroup, null);
group.UserNames.Add("Carol");
_repository.UpdateGroup(group);
See Also