New features added to the membership and membershipuser class in The Latest CTP Drop of Visual Studio 2005.
MEMBERSHIP CLASS
Generate Password
Public String GeneratePassword (String Length)
This Method Will Randomly Generate a Password with the given length.
String password = Membership.GenereatePassword (10);
Membership.createuser ("Fredrik", Password);
The Password Could for Example Be generated to: 1b8y # qp3o8
Get Number of Users Online
Public int getNumberofuseronline ()
Gets the number of users currently online.
Password Attempt THRESHOLD
Public int passwordttethreshold {get;}
Gets The Number of Password Attempts Before The User Will BE Locked Out.
You specify the PasswordAttemptThreshold for the Membership feature, by setting the passwordAttemptThreshold attribute for the membership provider in the configuration file. The default value is 5 attempts.
Password Attempt Windows
Public int passwordattemptWindows {get;}
Gets The Number of Minutes in Which a Maximum Number of Invalid Password Or Password Answer Attempts Are ALOWED BEFORE The Membership User is Locked Out.
You specify the PasswordAttemptWindows for the Membership feature, by setting the passwordAttemptWindows attribute for the membership provider in the configuration file. The default value is 10 minutes.
User is Online Time WINDOW
Public int useerisonLinetimeWindow {get;}
Gets The Number of Minutes After The Last Activity Data-Time Stamp for a User During Which The User is considered online.
MEMBERSHIPUSER CLASS
Is Locked Out Public Bool Islockedout {Get;}
Indicate if the user is locate.
Last Lockout Date Public DataTime LastLockOutdate {Get;}
Gets The Most Recent Date and Time That That The Membership User Was Locked Out.unlock User Public Bool UnlockUser ()
Unlocks the user. The UnlockUser method returns true if the user was unlocked. If the user was not found, the UnlockUser method will return false to indicate that the use was not unlocked. You can also use the Provider's UnlockUser from the Membership class if you Want to Specify Which User You Want To Unlock: Membership.Provider.unlockuser ("Fredrik"); What is MEMBERSHIP? I haven't found the relevant introduction, but according to the above, I have a random generated password, check the number of online people, etc., it is really powerful, VS. Net 2005 is really expective