ApplicationUserStoreTUserSetEmailAsync Method |
Sets the email address for a user.
Namespace: Kentico.MembershipAssembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntax public Task SetEmailAsync(
TUser user,
string email,
CancellationToken cancellationToken
)
Parameters
- user
- Type: TUser
The user whose email should be set. - email
- Type: SystemString
The email to set. - cancellationToken
- Type: System.ThreadingCancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
Return Value
Type:
Task
The
Task that represents the asynchronous operation.
Implements
IUserEmailStore.SetEmailAsync(UTP, String, CancellationToken)Exceptions Exception | Condition |
---|
ArgumentNullException | user is null. |
InvalidOperationException | Thrown when user is not found. |
See Also