Delen via


IUserClaimsPrincipalFactory<TUser>.CreateAsync(TUser) Method

Definition

Creates a ClaimsPrincipal from an user asynchronously.

public:
 System::Threading::Tasks::Task<System::Security::Claims::ClaimsPrincipal ^> ^ CreateAsync(TUser user);
public System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal> CreateAsync (TUser user);
abstract member CreateAsync : 'User -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal>
Public Function CreateAsync (user As TUser) As Task(Of ClaimsPrincipal)

Parameters

user
TUser

The user to create a ClaimsPrincipal from.

Returns

The Task that represents the asynchronous creation operation, containing the created ClaimsPrincipal.

Applies to