BuildMaster SDK Reference
Version:

TryParseLogonUser(string logonUser) Method

Returns a IUserDirectoryUser for the user with the specified LOGON_USER string.

Syntax

public virtual IUserDirectoryUser TryParseLogonUser(string logonUser)

Parameters

logonUser
Type: string

The LOGON_USER server variable value.

Returns

A corresponding IUserDirectoryUser for the specified user name, if the user was found in the directory and this directory supports integrated authentication; otherwise null (Nothing in Visual Basic).

Exceptions

System.ArgumentNullException

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