.NET Framework Class Library
MembershipUser.LastLockoutDate Property
Note: This property is new in the .NET Framework version 2.0.
Gets the most recent date and time that the membership user was locked out.
Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)
MembershipUser Members
System.Web.Security Namespace
Assembly: System.Web (in system.web.dll)
Syntax
Visual Basic (Declaration)
Public Overridable ReadOnly Property LastLockoutDate As DateTime
Visual Basic (Usage)
Dim instance As MembershipUser Dim value As DateTime value = instance.LastLockoutDate
C#
public virtual DateTime LastLockoutDate { get; }
C++
public: virtual property DateTime LastLockoutDate { DateTime get (); }
J#
/** @property */ public DateTime get_LastLockoutDate ()
JScript
public function get LastLockoutDate () : DateTime
Property Value
A DateTime object that represents the most recent date and time that the membership user was locked out.Remarks
Users are most commonly locked out when the MaxInvalidPasswordAttempts is reached within the PasswordAttemptWindow.
Users can also be locked out if you use the GetPassword or ResetPassword overload that accepts a password answer and the number of bad answers entered by the user reaches the Membership.MaxInvalidPasswordAttempts within the Membership.PasswordAttemptWindow.
Platforms
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Version Information
.NET Framework
Supported in: 2.0See Also
Reference
MembershipUser ClassMembershipUser Members
System.Web.Security Namespace