IUserTokenProvider<TUser, TKey>.IsValidProviderForUserAsync Method (UserManager<TUser, TKey>, TUser)
Indicates whether the provider can be used for this user.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
Task<bool> IsValidProviderForUserAsync(
UserManager<TUser, TKey> manager,
TUser user
)
Task<bool>^ IsValidProviderForUserAsync(
UserManager<TUser, TKey>^ manager,
TUser user
)
abstract IsValidProviderForUserAsync :
manager:UserManager<'TUser, 'TKey> *
user:'TUser -> Task<bool>
Function IsValidProviderForUserAsync (
manager As UserManager(Of TUser, TKey),
user As TUser
) As Task(Of Boolean)
Parameters
manager
Type: Microsoft.AspNet.Identity.UserManager<TUser, TKey>The manager.
user
Type: TUserThe user.
Return Value
Type: System.Threading.Tasks.Task<Boolean>
true if the provider can be used for this user; otherwise, false.
See Also
IUserTokenProvider<TUser, TKey> Interface
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top