Get the record for an existing group from the repository.
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
Syntax
C# |
---|
public Group GetGroup( string group ) |
Visual Basic |
---|
Public Function GetGroup ( _ group As String _ ) As Group |
Visual C++ |
---|
public: Group^ GetGroup( String^ group ) |
Parameters
- group
- Type: System..::..String
Group name
Return Value
The Group object if new group was found, null if creation failed
Examples
To get the group 'everyone':
CopyC#

string targetGroup = "everyone"; IList<Group> group = _repository.getGroup(targetGroup);