LoginUser Method (LoginManager)
- Last UpdatedMar 17, 2026
- 1 minute read
The LogInUser() method logs a user onto the MES system.
'Declaration
Public Function LoginUser() As DialogResult
'Usage
Dim instance As LoginManager
Dim value As DialogResult
value = instance.LoginUser()
public DialogResult LoginUser()
Return Value
Returns a DialogResult, which can have one of three values:
DialogResult.OK = the user was logged in successfully.
DialogResult.Cancel = the user cancelled the login.
DialogResult.No = the login failed.
If the Automatic Login system parameter is set to true, a SingleSignon logon will be attempted, using the OS user (including the domain) as the user ID. If Automatic Login is not being used, or if the SingleSignon logon fails, the IGetUser object passed into the LoginManager constructor will be used to obtain the user ID and password. A logon will then be performed using this user ID and password.