IUserClaimStore<TUser, TKey>.AddClaimAsync Method (TUser, Claim)
Adds a new user claim.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
Task AddClaimAsync(
TUser user,
Claim claim
)
Task^ AddClaimAsync(
TUser user,
Claim^ claim
)
abstract AddClaimAsync :
user:'TUser *
claim:Claim -> Task
Function AddClaimAsync (
user As TUser,
claim As Claim
) As Task
Parameters
user
Type: TUserThe user where a claim will be added to.
claim
Type: System.Security.Claims.ClaimThe claim to add.
Return Value
Type: System.Threading.Tasks.Task
The task object representing the asynchronous operation.
See Also
IUserClaimStore<TUser, TKey> Interface
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top