UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.AddClaimAsync Method
Asynchronously adds a claim to a user.
Namespace: Microsoft.AspNet.Identity.EntityFramework
Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
Syntax
'Declaration
Public Overridable Function AddClaimAsync ( _
user As TUser, _
claim As Claim _
) As Task
'Usage
Dim instance As UserStore
Dim user As TUser
Dim claim As Claim
Dim returnValue As Task
returnValue = instance.AddClaimAsync(user, _
claim)
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 function AddClaimAsync(
user : TUser,
claim : Claim
) : Task
Parameters
- user
Type: TUser
The user.
- claim
Type: Claim
The claim to add.
Return Value
Type: System.Threading.Tasks.Task
The task representing the asynchronous operation.
Implements
IUserClaimStore<TUser, TKey>.AddClaimAsync(TUser, Claim)
See Also
Reference
UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace