Get user details by user name.
Namespace: CelloSaaS.ServiceContracts.UserManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- userName
- Type: System String
User Name(Mandatory)
Return Value
Type: UserDetailsUser information
Exceptions
Exception | Condition |
---|---|
CelloSaaS.ServiceContracts.UserManagement UserDetailException | If Any exception occurred, while connecting or modifying the database. |
System ArgumentNullException | If user name is null or empty. |
Examples
Public void GetUserDetailsByName() { UserDetails userDetails = new UserDetails(); string userName = "[email protected]"; IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService)); userDetails = userDetailsService.GetUserDetailsByName(userName); }
See Also