ClaimsIdentityFactory<TUser>.CreateAsync Method
Create a ClaimsIdentity from a user
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
'Declaration
Public Overridable Function CreateAsync ( _
manager As UserManager(Of TUser), _
user As TUser, _
authenticationType As String _
) As Task(Of ClaimsIdentity)
'Usage
Dim instance As ClaimsIdentityFactory
Dim manager As UserManager(Of TUser)
Dim user As TUser
Dim authenticationType As String
Dim returnValue As Task(Of ClaimsIdentity)
returnValue = instance.CreateAsync(manager, _
user, authenticationType)
public virtual Task<ClaimsIdentity> CreateAsync(
UserManager<TUser> manager,
TUser user,
string authenticationType
)
public:
virtual Task<ClaimsIdentity^>^ CreateAsync(
UserManager<TUser>^ manager,
TUser user,
String^ authenticationType
)
abstract CreateAsync :
manager:UserManager<'TUser> *
user:'TUser *
authenticationType:string -> Task<ClaimsIdentity>
override CreateAsync :
manager:UserManager<'TUser> *
user:'TUser *
authenticationType:string -> Task<ClaimsIdentity>
public function CreateAsync(
manager : UserManager<TUser>,
user : TUser,
authenticationType : String
) : Task<ClaimsIdentity>
Parameters
- manager
Type: Microsoft.AspNet.Identity.UserManager<TUser>
- user
Type: TUser
- authenticationType
Type: System.String
Return Value
Type: System.Threading.Tasks.Task<ClaimsIdentity>
Implements
IClaimsIdentityFactory<TUser>.CreateAsync(UserManager<TUser>, TUser, String)