Click or drag to resize
ApplicationUserStoreTUserGetUserIdAsync Method
Gets the user identifier for the specified user.

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

Parameters

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

Return Value

Type: TaskString
The TaskTResult that represents the asynchronous operation, containing the identifier for the specified user.

Implements

IUserStore.GetUserIdAsync(UTP, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionuser is null.
See Also