RoleStore<TRole>.CreateAsync Method
Insert an entity
Namespace: Microsoft.AspNet.Identity.EntityFramework
Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
Syntax
'Declaration
Public Overridable Function CreateAsync ( _
role As TRole _
) As Task
'Usage
Dim instance As RoleStore
Dim role As TRole
Dim returnValue As Task
returnValue = instance.CreateAsync(role)
public virtual Task CreateAsync(
TRole role
)
public:
virtual Task^ CreateAsync(
TRole role
)
abstract CreateAsync :
role:'TRole -> Task
override CreateAsync :
role:'TRole -> Task
public function CreateAsync(
role : TRole
) : Task
Parameters
- role
Type: TRole
Return Value
Type: System.Threading.Tasks.Task
Implements
IRoleStore<TRole>.CreateAsync(TRole)