BuildMaster SDK Reference
Version:

TryGetGroup(string groupName) Method

Returns a IUserDirectoryGroup for the group with the specified name.

Syntax

public virtual IUserDirectoryGroup TryGetGroup(string groupName)

Parameters

groupName
Type: string

The name of the group to look up.

Returns

A corresponding IUserDirectoryGroup for the specified group, if the group was found in the directory; otherwise null (Nothing in Visual Basic).

Exceptions

System.ArgumentNullException

groupName is null (Nothing in Visual Basic) or empty.