Logs an existing user into the system by UserID if an iMIS user

Namespace: Asi.iBO
Assembly: Asi.iBO (in Asi.iBO.dll) Version: 15.1.3.0

Syntax

C#
public static CStaffUser LoginByUserId(
	string userId,
	bool setAppPrincipal
)
Visual Basic
Public Shared Function LoginByUserId ( _
	userId As String, _
	setAppPrincipal As Boolean _
) As CStaffUser
Visual C++
public:
static CStaffUser^ LoginByUserId(
	String^ userId, 
	bool setAppPrincipal
)

Parameters

userId
Type: System..::..String
The iMIS staff user's UserID/LoginID
setAppPrincipal
Type: System..::..Boolean
Whether the current app principal should be set to the logged-in user or not.

Return Value

The appropriate object representing the logged in staff user.

See Also