UserManagerExtensions.FindByEmail<TUser, TKey> Method (UserManager<TUser, TKey>, String)

 

Finds a user by email.

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

Syntax

public static TUser FindByEmail<TUser, TKey>(
    this UserManager<TUser, TKey> manager,
    string email
)
where TUser : class, IUser<TKey>
where TKey : object, IEquatable<TKey>
public:
generic<typename TUser, typename TKey>
where TUser : ref class, IUser<TKey>
where TKey : Object, IEquatable<TKey>
[ExtensionAttribute]
static TUser FindByEmail(
    UserManager<TUser, TKey>^ manager,
    String^ email
)
static member FindByEmail<'TUser, 'TKey when 'TUser : not struct and IUser<'TKey> when 'TKey : Object and IEquatable<'TKey>> : 
        manager:UserManager<'TUser, 'TKey> *
        email:string -> 'TUser
<ExtensionAttribute>
Public Shared Function FindByEmail(Of TUser As { Class, IUser(Of TKey) }, TKey As { Object, IEquatable(Of TKey) }) (
    manager As UserManager(Of TUser, TKey),
    email As String
) As TUser

Parameters

Return Value

Type: TUser

The result of the search.

Type Parameters

  • TUser
    The type of the user.
  • TKey
    The type of the key.

See Also

UserManagerExtensions Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top