BuildMaster SDK Reference
Version:

TryGetUser(string userName) Method

Returns a Inedo.Extensibility.UserDirectories.IUserDirectoryUser for the user with the specified user name.

Syntax

public virtual Inedo.Extensibility.UserDirectories.IUserDirectoryUser TryGetUser(string userName)

Parameters

userName
Type: string

The user name of the user to look up.

Returns

A corresponding Inedo.Extensibility.UserDirectories.IUserDirectoryUser for the specified user name, if the user was found in the directory; otherwise null (Nothing in Visual Basic).

Exceptions

System.ArgumentNullException

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