GetByKey Method (UserName)
- Last UpdatedNov 06, 2025
- 1 minute read
The GetByKey() method retrieves the specified user name record from the User_Name table.
Parameters
- userId
Required. Holds the ID of the user that identifies the record to be retrieved. For example, the employee number or name of the employee.
Return Value
Returns a DataSet that contains the DataRow of the specified user name in the User_Name table. If no matching record for the specified user name is found, an empty DataSet is returned.