Leadtools.Medical.Workstation.DataAccessLayer Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AddUser Method
See Also 
Leadtools.Medical.Workstation.DataAccessLayer Namespace > WorkstationDataAccessAgent Class : AddUser Method



adminUser
The name of the administrator adding the new user.
adminPassword
The administrator's password.
userName
The new user name to add.
password
The new user password to add.
isAdmin
A Boolean value indicating whether the new user is an administrator.
adminUser
The name of the administrator adding the new user.
adminPassword
The administrator's password.
userName
The new user name to add.
password
The new user password to add.
isAdmin
A Boolean value indicating whether the new user is an administrator.
Adds a new user to the database. (Inherited from IWorkstationDataAccessAgent).

Syntax

Visual Basic (Declaration)  
Public Overridable Function AddUser( _
   ByVal adminUser As String, _
   ByVal adminPassword As SecureString, _
   ByVal userName As String, _
   ByVal password As SecureString, _
   ByVal isAdmin As Boolean _
) As Boolean
Visual Basic (Usage) Copy Code
Dim instance As WorkstationDataAccessAgent
Dim adminUser As String
Dim adminPassword As SecureString
Dim userName As String
Dim password As SecureString
Dim isAdmin As Boolean
Dim value As Boolean
 
value = instance.AddUser(adminUser, adminPassword, userName, password, isAdmin)
C#  
public virtual bool AddUser( 
   string adminUser,
   SecureString adminPassword,
   string userName,
   SecureString password,
   bool isAdmin
)
C++/CLI  
public:
virtual bool AddUser( 
   String^ adminUser,
   SecureString^ adminPassword,
   String^ userName,
   SecureString^ password,
   bool isAdmin
) 

Parameters

adminUser
The name of the administrator adding the new user.
adminPassword
The administrator's password.
userName
The new user name to add.
password
The new user password to add.
isAdmin
A Boolean value indicating whether the new user is an administrator.

Return Value

True if the user is added; otherwise it is false.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Medical.Workstation.DataAccessLayer requires a Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features