Adds a new user to the Visual Guard repository.
Namespace:
Novalys.VisualGuard.Security.Membership
Assembly:
Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 3.2.912.1 (3.2.912.01)
Syntax
| C# |
|---|
public static VGMembershipUser CreateUser(
string username,
string password,
string email,
string passwordQuestion,
string passwordAnswer,
bool isApproved,
string comment,
string firstName,
string lastName,
bool mustChangePasswordAtNextLogon,
out VGMembershipCreateStatus status
) |
| Visual Basic (Declaration) |
|---|
Public Shared Function CreateUser ( _
username As String, _
password As String, _
email As String, _
passwordQuestion As String, _
passwordAnswer As String, _
isApproved As Boolean, _
comment As String, _
firstName As String, _
lastName As String, _
mustChangePasswordAtNextLogon As Boolean, _
<OutAttribute> ByRef status As VGMembershipCreateStatus _
) As VGMembershipUser |
Return Value
A
VGMembershipUser object for the newly created user. a null value (Nothing in VB) when the creation fails.
Exceptions
| Exception | Condition |
|---|
| System.Security..::.SecurityException | The current user has not enough privileges to use Membership API. The Membership access level of the application must be sufficient to allows this action or the 'Membership Manager' role must be granted to the user by using the Visual Guard console. |
See Also