ABsoluteMaybe.SampleWebsite.MVC2.Models.AccountMembershipService.CreateUser C# (CSharp) Method

CreateUser() public method

public CreateUser ( string userName, string password, string email ) : MembershipCreateStatus
userName string
password string
email string
return MembershipCreateStatus
        public MembershipCreateStatus CreateUser(string userName, string password, string email)
        {
            if (String.IsNullOrEmpty(userName)) throw new ArgumentException("Value cannot be null or empty.", "userName");
            if (String.IsNullOrEmpty(password)) throw new ArgumentException("Value cannot be null or empty.", "password");
            if (String.IsNullOrEmpty(email)) throw new ArgumentException("Value cannot be null or empty.", "email");

            MembershipCreateStatus status;
            _provider.CreateUser(userName, password, email, null, null, true, null, out status);
            return status;
        }