A System.Web.Security.MembershipUser object for the newly created user.
Membership.CreateUser(string, string) adds a new user to the data store and returns a System.Web.Security.MembershipUser object for the newly created user. If the user creation fails, a System.Web.Security.MembershipCreateUserException is thrown. You can retrieve a System.Web.Security.MembershipCreateStatus value from the MembershipCreateUserException.StatusCode property of the System.Web.Security.MembershipCreateUserException that indicates why user creation failed.
Once a membership user has been created and you have a reference to a System.Web.Security.MembershipUser object for that user, you can modify the settings for that user with the System.Web.Security.MembershipUser public methods, such as MembershipUser.ChangePasswordQuestionAndAnswer(string, string, string) for applications where Membership.RequiresQuestionAndAnswer is true, or by setting the property values of the System.Web.Security.MembershipUser object and passing them to the Membership.UpdateUser(MembershipUser) method.
If a user already exists in the data source for the application, you can obtain a System.Web.Security.MembershipUser object for the existing user with the Membership.GetUser method.
Leading and trailing spaces are trimmed from all parameter values.