IRoleStore<TRole, TKey>.CreateAsync Method
Asynchronously creates a new role.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
'Declaration
Function CreateAsync ( _
role As TRole _
) As Task
'Usage
Dim instance As IRoleStore
Dim role As TRole
Dim returnValue As Task
returnValue = instance.CreateAsync(role)
Task CreateAsync(
TRole role
)
Task^ CreateAsync(
TRole role
)
abstract CreateAsync :
role:'TRole -> Task
function CreateAsync(
role : TRole
) : Task
Parameters
- role
Type: TRole
The role to create.
Return Value
Type: System.Threading.Tasks.Task
The task representing the asynchronous operation.
See Also
Reference
IRoleStore<TRole, TKey> Interface
Microsoft.AspNet.Identity Namespace