ServicePRO SDK Help

ManageObjectsServicesManager..::..GetUsersForCompany Method

Gets all the users belongs to this company.

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

Syntax


public void GetUsersForCompany(
	string sessionKey,
	int companyId,
	Action<List<stcListItem>, Exception> callbackAction
)
Public Sub GetUsersForCompany ( _
	sessionKey As String, _
	companyId As Integer, _
	callbackAction As Action(Of List(Of stcListItem), Exception) _
)

Parameters

sessionKey
Type: String
User’s Session Key.
Key property of the 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.
companyId
Type: Int32
The company identifier.
callbackAction
Type: Action<(Of <(<'List<(Of <(<'stcListItem>)>)>, Exception>)>)>
The callback action.