SimpleMembershipProvider.GetUserIdFromPasswordResetToken Method

Returns the ID for a user based on a password reset token.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

'Declaration
Public Overrides Function GetUserIdFromPasswordResetToken ( _
	token As String _
) As Integer
'Usage
Dim instance As SimpleMembershipProvider
Dim token As String
Dim returnValue As Integer

returnValue = instance.GetUserIdFromPasswordResetToken(token)

Parameters

token
Type: System.String
The password reset token.

Return Value

Type: System.Int32
The user ID, or -1 if there is no user ID associated with the specified password reset token.

ExceptionCondition
InvalidOperationException

The SimpleMembershipProvider class was not initialized using a call to the InitializeDatabaseConnection method.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show: