GetUser Method
- Last UpdatedNov 06, 2025
- 1 minute read
The GetUser() method retrieves a user ID and password.
'Declaration
Function GetUser( _
ByRef userId As String, _
ByRef password As String _
) As DialogResult
'Usage
Dim instance As IGetUser
Dim userId As String
Dim password As String
Dim value As DialogResult
value = instance.GetUser(userId, password)
DialogResult GetUser(
out string userId,
out string password
)
Parameters
- userId
- Output. Holds the returned valid MES user ID.
- password
- Output. Holds the password for the returned user ID.
Return Value
Returns a DialogResult, which can have one of three values:
DialogResult.OK = a valid user ID and password were obtained.
DialogResult.Cancel = the user cancelled the login.
DialogResult.No = a valid user ID and password were not obtained.
Any other value will be interpreted by the LoginManager class as a failure (DialogResult.No).