SignInManager<TUser>.CreateUserPrincipalAsync(TUser) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a ClaimsPrincipal for the specified user
, as an asynchronous operation.
public:
virtual System::Threading::Tasks::Task<System::Security::Claims::ClaimsPrincipal ^> ^ CreateUserPrincipalAsync(TUser user);
public virtual System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal> CreateUserPrincipalAsync (TUser user);
abstract member CreateUserPrincipalAsync : 'User -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal>
override this.CreateUserPrincipalAsync : 'User -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal>
Public Overridable Function CreateUserPrincipalAsync (user As TUser) As Task(Of ClaimsPrincipal)
Parameters
- user
- TUser
The user to create a ClaimsPrincipal for.
Returns
The task object representing the asynchronous operation, containing the ClaimsPrincipal for the specified user.