UserManager<TUser>.RemoveClaimAsync(TUser, Claim) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the specified claim
from the given user
.
public:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ RemoveClaimAsync(TUser user, System::Security::Claims::Claim ^ claim);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> RemoveClaimAsync (TUser user, System.Security.Claims.Claim claim);
abstract member RemoveClaimAsync : 'User * System.Security.Claims.Claim -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.RemoveClaimAsync : 'User * System.Security.Claims.Claim -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function RemoveClaimAsync (user As TUser, claim As Claim) As Task(Of IdentityResult)
Parameters
- user
- TUser
The user to remove the specified claim
from.
Returns
The Task that represents the asynchronous operation, containing the IdentityResult of the operation.