Language

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: TUser

    The user where a claim will be added to.

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](https://go.microsoft.com/fwlink/p/?linkid=393664.

Return to top