Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WebSecurity::GetPasswordFailuresSinceLastSuccess Method

Returns the number of times that the password for the specified account was incorrectly entered since the last successful login or since the membership account was created.

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

static int GetPasswordFailuresSinceLastSuccess(
	String^ userName


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

Return Value

Type: System::Int32
The count of failed password attempts for the specified account.


The SimpleMembershipProvider::Initialize(String, NameValueCollection) method was not called.


The InitializeDatabaseConnection() method was not called.


The SimpleMembershipProvider membership provider is not registered in the configuration of your site. For more information, contact your site's system administrator.

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