System.Web.Security.Membership.UpdateUser Method

Updates the database with the information for the specified user.

Syntax

public static void UpdateUser (MembershipUser user)

Parameters

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

Remarks

Membership.UpdateUser(MembershipUser) takes, as input, a System.Web.Security.MembershipUser object populated with current information for the membership user and updates the data source with the property values of the System.Web.Security.MembershipUser object. You can construct a new System.Web.Security.MembershipUser, or retrieve a System.Web.Security.MembershipUser object populated with current values at the data source using the Membership.GetUser, Membership.GetAllUsers, Membership.FindUsersByName(string), or Membership.FindUsersByEmail(string) methods.

Requirements

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