IRoleStore<TRole, TKey>.CreateAsync Method (TRole)

 

Asynchronously creates a new role.

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

Syntax

Task CreateAsync(
    TRole role
)
Task^ CreateAsync(
    TRole role
)
abstract CreateAsync : 
        role:'TRole -> Task
Function CreateAsync (
    role As TRole
) As Task

Parameters

  • role
    Type: TRole

    The role to create.

Return Value

Type: System.Threading.Tasks.Task

The task representing the asynchronous operation.

See Also

IRoleStore<TRole, TKey> Interface
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top