ServicePRO SDK Help

LoginServiceManager..::..Login Method

Login to ServicePRO

Namespace:  ServicePRO.Sdk.Windows.Managers
Assembly:  ServicePRO.Sdk.Windows (in ServicePRO.Sdk.Windows.dll)

Syntax


public void Login(
	stcListItem domainInfo,
	stcSession userSession,
	string userName,
	string password,
	bool bLogOffOtherSession,
	clsEnumeration..::..hsInterface interfaceType,
	Action<stcUserLoginInfo, Exception> callbackAction
)
Public Sub Login ( _
	domainInfo As stcListItem, _
	userSession As stcSession, _
	userName As String, _
	password As String, _
	bLogOffOtherSession As Boolean, _
	interfaceType As clsEnumeration..::..hsInterface, _
	callbackAction As Action(Of stcUserLoginInfo, Exception) _
)

Parameters

domainInfo
Type: HelpSTAR.PCL.Common..::..stcListItem
Domain to use for authentication
userSession
Type: HelpSTAR.PCL.Common..::..stcSession
User’s Session
User Session Object of type stcSession.
The User Session has to be established by making a call to InitializeSystemAndSession() method in CoreServicesManager class as a first step with using ServicePRO SDK.
userName
Type: String
User name for login
password
Type: String
Password for login (Pass null when AD login is used)
bLogOffOtherSession
Type: Boolean
if set to true [b log off the same user if already logged in].
interfaceType
Type: HelpSTAR.PCL.Common..::..clsEnumeration..::..hsInterface
User interface environment type.
callbackAction
Type: Action<(Of <(<'stcUserLoginInfo, Exception>)>)>
Callback action that will have login details (i.e. Login status, User, UserId)