VistaDB 6
VistaDB.Web Namespace / VistaDBMembershipProvider Class / CreateUser Method
The user name for the new user.
The password for the new user.
The email address for the new user.
The password question for the new user.
The password answer for the new user
Whether or not the new user is approved to be validated.
The unique identifier from the membership data source for the user.
A System.Web.Security.MembershipCreateStatus enumeration value indicating whether the user was created successfully.


In This Topic
    CreateUser Method
    In This Topic
    Adds a new membership user to the data source.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function CreateUser( _
       ByVal username As System.String, _
       ByVal password As System.String, _
       ByVal email As System.String, _
       ByVal passwordQuestion As System.String, _
       ByVal passwordAnswer As System.String, _
       ByVal isApproved As System.Boolean, _
       ByVal providerUserKey As System.Object, _
       ByRef status As System.Web.Security.MembershipCreateStatus _
    ) As System.Web.Security.MembershipUser
    'Usage
     
    
    Dim instance As VistaDBMembershipProvider
    Dim username As System.String
    Dim password As System.String
    Dim email As System.String
    Dim passwordQuestion As System.String
    Dim passwordAnswer As System.String
    Dim isApproved As System.Boolean
    Dim providerUserKey As System.Object
    Dim status As System.Web.Security.MembershipCreateStatus
    Dim value As System.Web.Security.MembershipUser
     
    value = instance.CreateUser(username, password, email, passwordQuestion, passwordAnswer, isApproved, providerUserKey, status)
    public override System.Web.Security.MembershipUser CreateUser( 
       System.string username,
       System.string password,
       System.string email,
       System.string passwordQuestion,
       System.string passwordAnswer,
       System.bool isApproved,
       System.object providerUserKey,
       out System.Web.Security.MembershipCreateStatus status
    )

    Parameters

    username
    The user name for the new user.
    password
    The password for the new user.
    email
    The email address for the new user.
    passwordQuestion
    The password question for the new user.
    passwordAnswer
    The password answer for the new user
    isApproved
    Whether or not the new user is approved to be validated.
    providerUserKey
    The unique identifier from the membership data source for the user.
    status
    A System.Web.Security.MembershipCreateStatus enumeration value indicating whether the user was created successfully.

    Return Value

    A System.Web.Security.MembershipUser object populated with the information for the newly created user.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also