Get the record for an existing group from 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 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);

See Also