Share via


IClaimsIdentityFactory<TUser, TKey>.CreateAsync Method (UserManager<TUser, TKey>, TUser, String)

 

Asynchronously creates a claims identity from a user using a user manager.

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

Syntax

Task<ClaimsIdentity> CreateAsync(
    UserManager<TUser, TKey> manager,
    TUser user,
    string authenticationType
)
Task<ClaimsIdentity^>^ CreateAsync(
    UserManager<TUser, TKey>^ manager,
    TUser user,
    String^ authenticationType
)
abstract CreateAsync : 
        manager:UserManager<'TUser, 'TKey> *
        user:'TUser *
        authenticationType:string -> Task<ClaimsIdentity>
Function CreateAsync (
    manager As UserManager(Of TUser, TKey),
    user As TUser,
    authenticationType As String
) As Task(Of ClaimsIdentity)

Parameters

  • user
    Type: TUser

    The user.

  • authenticationType
    Type: System.String

    The authentication type.

Return Value

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

The task representing the asynchronous operation.

See Also

IClaimsIdentityFactory<TUser, TKey> Interface
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top