Share via


UserManager<TUser>.RemoveClaimAsync Method

Remove a user claim

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

Syntax

'Declaration
Public Overridable Function RemoveClaimAsync ( _
    userId As String, _
    claim As Claim _
) As Task(Of IdentityResult)
'Usage
Dim instance As UserManager 
Dim userId As String 
Dim claim As Claim 
Dim returnValue As Task(Of IdentityResult)

returnValue = instance.RemoveClaimAsync(userId, _
    claim)
public virtual Task<IdentityResult> RemoveClaimAsync(
    string userId,
    Claim claim
)
public:
virtual Task<IdentityResult^>^ RemoveClaimAsync(
    String^ userId, 
    Claim^ claim
)
abstract RemoveClaimAsync : 
        userId:string * 
        claim:Claim -> Task<IdentityResult> 
override RemoveClaimAsync : 
        userId:string * 
        claim:Claim -> Task<IdentityResult> 
public function RemoveClaimAsync(
    userId : String, 
    claim : Claim
) : Task<IdentityResult>

Parameters

  • claim
    Type: Claim

Return Value

Type: System.Threading.Tasks.Task<IdentityResult>

See Also

Reference

UserManager<TUser> Class

Microsoft.AspNet.Identity Namespace