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