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



adminUser
The administrator's name who is updating the user.
adminPassword
The administrator's password.
userName
The user name which will be updated.
isAdmin
A Boolean value indicating whether this userName is an administrator.
adminUser
The administrator's name who is updating the user.
adminPassword
The administrator's password.
userName
The user name which will be updated.
isAdmin
A Boolean value indicating whether this userName is an administrator.
Updates the Administrator state of an existing user. (Inherited from IWorkstationDataAccessAgent).

Syntax

Visual Basic (Declaration)  
Public Overridable Function SetAdminUser( _
   ByVal adminUser As String, _
   ByVal adminPassword As SecureString, _
   ByVal userName As String, _
   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 isAdmin As Boolean
Dim value As Boolean
 
value = instance.SetAdminUser(adminUser, adminPassword, userName, isAdmin)
C#  
public virtual bool SetAdminUser( 
   string adminUser,
   SecureString adminPassword,
   string userName,
   bool isAdmin
)
C++/CLI  
public:
virtual bool SetAdminUser( 
   String^ adminUser,
   SecureString^ adminPassword,
   String^ userName,
   bool isAdmin
) 

Parameters

adminUser
The administrator's name who is updating the user.
adminPassword
The administrator's password.
userName
The user name which will be updated.
isAdmin
A Boolean value indicating whether this userName is an administrator.

Return Value

True if the operation succeeded; 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