- 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.
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 |
---|---|
|
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.Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family