RoleManager<TRole, TKey>.RoleExistsAsync Method (String)

 

Indicates a value whether the role exists.

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

Syntax

public virtual Task<bool> RoleExistsAsync(
    string roleName
)
public:
virtual Task<bool>^ RoleExistsAsync(
    String^ roleName
)
abstract RoleExistsAsync : 
        roleName:string -> Task<bool>
override RoleExistsAsync : 
        roleName:string -> Task<bool>
Public Overridable Function RoleExistsAsync (
    roleName As String
) As Task(Of Boolean)

Parameters

Return Value

Type: System.Threading.Tasks.Task<Boolean>

true if the role exists; otherwise, false.

See Also

RoleManager<TRole, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top