ISAWHAppObject::GetAllUsers
Description
Retrieves all users in SAW database.
Syntax
long GetAllUsers(
ISAWHUserSet* UserSet,
VARIANT_BOOL* Cancelled,
BSTR* ResultDescription
);
Parameters
UserSet
[in] Specifies the name set of users in Dynamsoft SourceAnywhere Hosted.
Cancelled
[out] If the method fails, returns whether the operation is cancelled.
ResultDescription
[out] Returns the description of the result. If the operation succeeds, returns
'Completed'. If the operation fails, returns the error information.
Return Value
If the method succeeds, returns 0. If the method fails, returns other error codes.
See Also
Sample
VB Sample:
Dim WithEvents sdkObject As SAWHSDKLib.SAWHAppObject Set sdkObject = New SAWHSDKLib.SAWHAppObject Private Sub GetAllUsers_Click() Dim Cancelled As Boolean Dim ResultDescription As String Dim UserSet As New SAWHUserSet Dim ResultValue As Long ResultValue = sdkObject.GetAllUsers(UserSet, Cancelled, ResultDescription) Dim Count As Long Count = UserSet.GetCount Dim Index As Long For Index = 0 To Count - 1 Dim UserName As String UserSet.Get Index, UserName Next End Sub |