Export (0) Print
Expand All

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)

public:
virtual int GetUserIdFromPasswordResetToken(
	String^ token
) override

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:
© 2014 Microsoft