VistaDB 5






CreateUser Method
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
)
public function CreateUser( 
    username: System.String;
    password: System.String;
    email: System.String;
    passwordQuestion: System.String;
    passwordAnswer: System.String;
    isApproved: System.Boolean;
    providerUserKey: System.TObject;
   Out  status: System.Web.Security.MembershipCreateStatus
): System.Web.Security.MembershipUser; override; 
public override function CreateUser( 
   username : System.String,
   password : System.String,
   email : System.String,
   passwordQuestion : System.String,
   passwordAnswer : System.String,
   isApproved : System.boolean,
   providerUserKey : System.Object,
   status : System.Web.Security.MembershipCreateStatus
) : System.Web.Security.MembershipUser;
public: 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,
   [PARAMFLAG::Out] System.Web.Security.MembershipCreateStatus status
) override 
public:
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
) override 

Parameters

username
password
email
passwordQuestion
passwordAnswer
isApproved
providerUserKey
status
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