UserClaimsPrincipalFactory<TUser>.CreateAsync(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 from an user asynchronously.
public:
virtual System::Threading::Tasks::Task<System::Security::Claims::ClaimsPrincipal ^> ^ CreateAsync(TUser user);
public virtual System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal> CreateAsync (TUser user);
abstract member CreateAsync : 'User -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal>
override this.CreateAsync : 'User -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsPrincipal>
Public Overridable 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.