Click or drag to resize
ApplicationUserStoreTUserGetEmailAsync Method
Gets the email address for the specified user.

Namespace: Kentico.Membership
Assembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntax
C#
public Task<string> GetEmailAsync(
	TUser user,
	CancellationToken cancellationToken
)

Parameters

user
Type: TUser
The user whose email should be returned.
cancellationToken
Type: System.ThreadingCancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.

Return Value

Type: TaskString
The TaskTResult containing the results of the asynchronous operation, the email address for the specified user.

Implements

IUserEmailStore.GetEmailAsync(UTP, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionuser is null.
See Also