Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Confirms the user with confirmation token.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
public static IdentityResult ConfirmEmail<TUser, TKey>(
this UserManager<TUser, TKey> manager,
TKey userId,
string token
)
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 IdentityResult^ ConfirmEmail(
UserManager<TUser, TKey>^ manager,
TKey userId,
String^ token
)
static member ConfirmEmail<'TUser, 'TKey when 'TUser : not struct and IUser<'TKey> when 'TKey : Object and IEquatable<'TKey>> :
manager:UserManager<'TUser, 'TKey> *
userId:'TKey *
token:string -> IdentityResult
<ExtensionAttribute>
Public Shared Function ConfirmEmail(Of TUser As { Class, IUser(Of TKey) }, TKey As { Object, IEquatable(Of TKey) }) (
manager As UserManager(Of TUser, TKey),
userId As TKey,
token As String
) As IdentityResult
Parameters
manager
Type: Microsoft.AspNet.Identity.UserManager<TUser, TKey>The user manager.
userId
Type: TKeyThe user ID.
token
Type: System.StringThe token.
Return Value
Type: Microsoft.AspNet.Identity.IdentityResult
The e-mail confirmed.
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