Share via


UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.AddClaimAsync Method (TUser, Claim)

 

Asynchronously adds a claim to a user.

Namespace:   Microsoft.AspNet.Identity.EntityFramework
Assembly:  Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)

Syntax

public virtual Task AddClaimAsync(
    TUser user,
    Claim claim
)
public:
virtual Task^ AddClaimAsync(
    TUser user,
    Claim^ claim
)
abstract AddClaimAsync : 
        user:'TUser *
        claim:Claim -> Task
override AddClaimAsync : 
        user:'TUser *
        claim:Claim -> Task
Public Overridable Function AddClaimAsync (
    user As TUser,
    claim As Claim
) As Task

Parameters

  • user
    Type: TUser

    The user.

Return Value

Type: System.Threading.Tasks.Task

The task representing the asynchronous operation.

Implements

IUserClaimStore<TUser, TKey>.AddClaimAsync(TUser, Claim)

See Also

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity

Return to top