Role Store<TUser>.Get Users InRole Async Method
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.
Returns a list of Users who are members of the named role.
public: System::Threading::Tasks::Task<System::Collections::Generic::IList<TUser> ^> ^ GetUsersInRoleAsync(System::String ^ roleName, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IList<TUser>> GetUsersInRoleAsync (string roleName, System.Threading.CancellationToken cancellationToken);
abstract member GetUsersInRoleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
Public Function GetUsersInRoleAsync (roleName As String, cancellationToken As CancellationToken) As Task(Of IList(Of TUser))
The name of the role whose membership should be returned.
The CancellationToken used to propagate notifications that the operation should be canceled.
The Task that represents the asynchronous operation, containing a list of users who are in the named role.