UpdateUser Method
Updates information about a user in the data source.
Namespace: Microsoft.CommerceServer.Runtime.Profiles
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Overrides Sub UpdateUser ( _
membershipUser As MembershipUser _
)
'Usage
Dim instance As UpmMembershipProvider
Dim membershipUser As MembershipUser
instance.UpdateUser(membershipUser)
public override void UpdateUser(
MembershipUser membershipUser
)
public:
virtual void UpdateUser(
MembershipUser^ membershipUser
) override
public override function UpdateUser(
membershipUser : MembershipUser
)
Parameters
- membershipUser
Type: System.Web.Security..::.MembershipUser
A System.Web.Security.MembershipUser object that represents the user to update and the updated information for the user.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | membershipUser is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
Updates information about a user in the data source.
The password for the membership user cannot be updated using the UpdateUser method. To update the password for a membership user, use the ChangePasswordQuestionAndAnswer method.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.