Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Users Namespace / UserRepository Class / CreateUser Method / CreateUser(String,String,String,String,String,Boolean,Int32,MembershipCreateStatus) Method
User name of the user to create.
Email address of the user to create. Pass in zz_anonymous to create a user for anonymous checkouts.
Password for the new user.
A challenge question to assist in recovery of lost passwords.
Answer to the challenge question.
Indicates whether the new user is approved.
The ID of the affiliate
Result of the create operation.
In This Topic
    CreateUser(String,String,String,String,String,Boolean,Int32,MembershipCreateStatus) Method
    In This Topic
    Creates a new user with the specified parameters.
    Syntax

    Parameters

    username
    User name of the user to create.
    email
    Email address of the user to create. Pass in zz_anonymous to create a user for anonymous checkouts.
    password
    Password for the new user.
    passwordQuestion
    A challenge question to assist in recovery of lost passwords.
    passwordAnswer
    Answer to the challenge question.
    isApproved
    Indicates whether the new user is approved.
    affiliateId
    The ID of the affiliate
    status
    Result of the create operation.

    Return Value

    A user instance if successful, or a null reference if the create fails.
    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