UserManager<TUser, TKey>.RemoveClaimAsync Method
Removes a user claim.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'Declaration
Public Overridable Function RemoveClaimAsync ( _
userId As TKey, _
claim As Claim _
) As Task(Of IdentityResult)
'Usage
Dim instance As UserManager
Dim userId As TKey
Dim claim As Claim
Dim returnValue As Task(Of IdentityResult)
returnValue = instance.RemoveClaimAsync(userId, _
claim)
public virtual Task<IdentityResult> RemoveClaimAsync(
TKey userId,
Claim claim
)
public:
virtual Task<IdentityResult^>^ RemoveClaimAsync(
TKey userId,
Claim^ claim
)
abstract RemoveClaimAsync :
userId:'TKey *
claim:Claim -> Task<IdentityResult>
override RemoveClaimAsync :
userId:'TKey *
claim:Claim -> Task<IdentityResult>
public function RemoveClaimAsync(
userId : TKey,
claim : Claim
) : Task<IdentityResult>
- userId
Type: TKey
The user ID.
- claim
Type: Claim
The user claim.
Type: System.Threading.Tasks.Task<IdentityResult>
The task representing the asynchronous operation.
UserManager<TUser, TKey> Class