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



adminUser
The administrator's user name who is performing the operation.
adminPassword
The administrator's password.
userName
The user's name whose password will be updated.
newPassword
A SecureString holding the new password for the user.
adminUser
The administrator's user name who is performing the operation.
adminPassword
The administrator's password.
userName
The user's name whose password will be updated.
newPassword
A SecureString holding the new password for the user.
Updates an existing user's password. (Inherited from IWorkstationDataAccessAgent).

Syntax

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

Parameters

adminUser
The administrator's user name who is performing the operation.
adminPassword
The administrator's password.
userName
The user's name whose password will be updated.
newPassword
A SecureString holding the new password for the user.

Return Value

True if the user password is updated; 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