Export (0) Print
Expand All

SimpleMembershipProvider.GetPasswordFailuresSinceLastSuccess Method

Returns the number of times that the password for the specified user account was incorrectly entered since the most recent successful login or since the user account was created.

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

public override int GetPasswordFailuresSinceLastSuccess(
	string userName
)

Parameters

userName
Type: System.String
The user name of the account.

Return Value

Type: System.Int32
The count of failed password attempts for the specified user account, or -1 if the user specified by userName does not have a user account.

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