UserManager<TUser, TKey>.UpdateSecurityStampAsync Method

Generates a new security stamp for a user, used for SignOutEverywhere functionality.

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

Syntax

'Declaration
Public Overridable Function UpdateSecurityStampAsync ( _
    userId As TKey _
) As Task(Of IdentityResult)
'Usage
Dim instance As UserManager 
Dim userId As TKey
Dim returnValue As Task(Of IdentityResult)

returnValue = instance.UpdateSecurityStampAsync(userId)
public virtual Task<IdentityResult> UpdateSecurityStampAsync(
    TKey userId
)
public:
virtual Task<IdentityResult^>^ UpdateSecurityStampAsync(
    TKey userId
)
abstract UpdateSecurityStampAsync : 
        userId:'TKey -> Task<IdentityResult> 
override UpdateSecurityStampAsync : 
        userId:'TKey -> Task<IdentityResult> 
public function UpdateSecurityStampAsync(
    userId : TKey
) : Task<IdentityResult>

Parameters

  • userId
    Type: TKey
    The user ID.

Return Value

Type: System.Threading.Tasks.Task<IdentityResult>
The task representing the asynchronous operation.

See Also

Reference

UserManager<TUser, TKey> Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity