Updates account in the following order: changes password, changes email and performs a custom action. If any of the steps fail, previous changes are rolled back.

Namespace: MonoSoftware.MonoX.Utilities
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public static bool UpdateAccount(
	string userName,
	string password,
	string email,
	Action<MembershipUser> customAction,
	out string errorMessage
)
Visual Basic
Public Shared Function UpdateAccount ( 
	userName As String,
	password As String,
	email As String,
	customAction As Action(Of MembershipUser),
	<OutAttribute> ByRef errorMessage As String
) As Boolean
Visual C++
public:
static bool UpdateAccount(
	String^ userName, 
	String^ password, 
	String^ email, 
	Action<MembershipUser^>^ customAction, 
	[OutAttribute] String^% errorMessage
)
F#
static member UpdateAccount : 
        userName : string * 
        password : string * 
        email : string * 
        customAction : Action<MembershipUser> * 
        errorMessage : string byref -> bool 

Parameters

userName
Type: System..::..String
User Name
password
Type: System..::..String
Password
email
Type: System..::..String
Email
customAction
Type: System..::..Action<(Of <(<'MembershipUser>)>)>
A custom action done after successfull update. If the action fails (throws an exception), a rollback of account update is performed.
errorMessage
Type: System..::..String%
Error message describing the reason of the account update failure.

Return Value

Type: Boolean

See Also