UserManager<TUser, TKey>.CreateIdentityAsync Method (TUser, String)
Creates a ClaimsIdentity representing the user.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
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 Overridable Function CreateIdentityAsync (
user As TUser,
authenticationType As String
) As Task(Of ClaimsIdentity)
Parameters
user
Type: TUserThe user.
authenticationType
Type: System.StringThe authentication type.
Return Value
Type: System.Threading.Tasks.Task<ClaimsIdentity>
The task representing the asynchronous operation.
See Also
UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top