RoleStore<TRole, TKey, TUserRole>.CreateAsync Method (TRole)

 

Asynchronously inserts an entity.

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

Syntax

public virtual Task CreateAsync(
    TRole role
)
public:
virtual Task^ CreateAsync(
    TRole role
)
abstract CreateAsync : 
        role:'TRole -> Task
override CreateAsync : 
        role:'TRole -> Task
Public Overridable Function CreateAsync (
    role As TRole
) As Task

Parameters

  • role
    Type: TRole

    The role.

Return Value

Type: System.Threading.Tasks.Task

The task representing the asynchronous operation.

Implements

IRoleStore<TRole, TKey>.CreateAsync(TRole)

See Also

RoleStore<TRole, TKey, TUserRole> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity

Return to top