System.Web.Security.SqlMembershipProvider.UpdateUser Method

Updates information about a user in the SQL Server membership database.

Syntax

public override void UpdateUser (MembershipUser user)

Parameters

user
A System.Web.Security.MembershipUser object that represents the user to update and the updated information for the user.

Remarks

This method is called by the System.Web.Security.Membership class to update user information for a user in the SQL Server database specified in the ASP.NET application's configuration file (Web.config). The MembershipUser.Email, MembershipUser.Comment, MembershipUser.IsApproved, MembershipUser.LastLoginDate, and MembershipUser.LastActivityDate property values are updated for the specified membership user.

The maximum length for the MembershipUser.UserName property is 256 characters. The maximum length for the MembershipUser.Email property is 256 characters.

The password for a membership user cannot be updated using the SqlMembershipProvider.UpdateUser(MembershipUser) method. To update the password for a membership user, use the MembershipUser.ChangePassword(string, string) method of the System.Web.Security.MembershipUser class.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0