Share via


UserManager<TUser>.CreateIdentityAsync Method

Creates a ClaimsIdentity representing the user

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

Syntax

'Declaration
Public Overridable Function CreateIdentityAsync ( _
    user As TUser, _
    authenticationType As String _
) As Task(Of ClaimsIdentity)
'Usage
Dim instance As UserManager 
Dim user As TUser
Dim authenticationType As String 
Dim returnValue As Task(Of ClaimsIdentity)

returnValue = instance.CreateIdentityAsync(user, _
    authenticationType)
public virtual Task<ClaimsIdentity> CreateIdentityAsync(
    TUser user,
    string authenticationType
)
public:
virtual Task<ClaimsIdentity^>^ CreateIdentityAsync(
    TUser user, 
    String^ authenticationType
)
abstract CreateIdentityAsync : 
        user:'TUser * 
        authenticationType:string -> Task<ClaimsIdentity> 
override CreateIdentityAsync : 
        user:'TUser * 
        authenticationType:string -> Task<ClaimsIdentity> 
public function CreateIdentityAsync(
    user : TUser, 
    authenticationType : String
) : Task<ClaimsIdentity>

Parameters

Return Value

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

See Also

Reference

UserManager<TUser> Class

Microsoft.AspNet.Identity Namespace