UserManager<TUser, TKey>.GetSecurityStampAsync Method

Returns the current security stamp for a user.

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

Syntax

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

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

Parameters

  • userId
    Type: TKey
    The user ID.

Return Value

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

See Also

Reference

UserManager<TUser, TKey> Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity