RoleManager<TRole>.RoleExistsAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a flag indicating whether the specified roleName
exists.
public:
virtual System::Threading::Tasks::Task<bool> ^ RoleExistsAsync(System::String ^ roleName);
public virtual System.Threading.Tasks.Task<bool> RoleExistsAsync (string roleName);
abstract member RoleExistsAsync : string -> System.Threading.Tasks.Task<bool>
override this.RoleExistsAsync : string -> System.Threading.Tasks.Task<bool>
Public Overridable Function RoleExistsAsync (roleName As String) As Task(Of Boolean)
Parameters
- roleName
- String
The role name whose existence should be checked.
Returns
The Task that represents the asynchronous operation, containing true if the role name exists, otherwise false.