visual studio 2005又一新增功能

2016-01-29 13:18 7 1 收藏

visual studio 2005又一新增功能,visual studio 2005又一新增功能

【 tulaoshi.com - ASP.NET 】

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 PasswordAttemptThreshold { 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 allowed 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 UserIsOnlineTimeWindow { 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 locked out. Last lockout date public DataTime LastLockOutDate { get; } Gets the most recent date and time 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"); MEMBERSHIP到底是什么呢?暂时没找到相关的介绍,但按上文来说,连随机生成密码,

检查在线人数等功能都有了,那的确厉害呀,VS。NET 2005真的令人期待

来源:http://www.tulaoshi.com/n/20160129/1489654.html

延伸阅读
引言 Visual Studio 类设计器是通用语言运行库的多功能、可视化设计环境。使用 Visual Studio 类设计器可以显现类和其他类型的结构,还可以通过可视化表示方法编辑它们的源代码。对类图的更改将直接反映在代码中,且对代码的更改会直接影响设计器的外观。设计器和代码之间的同步关系,使得可视化创建和配置复杂的 CLR 类型变得容易。 ...
标签: Web开发
昨天晚上两点才睡(很久没有陪老婆出去疯了,想下真对不住她),4点多儿子醒了,我就起来哄,一直到接近6点才有得睡.早上9点,老婆非拉我起来去听什么育儿讲座,到10.10分左右,我实在觉得不行了,好歹让老婆跟我一起出来了,她去逛街,我借口想买书,去书店一蹲就到1点43分,回家后我噎(确实吃不进去,也不知道味道)了点饭进去就去找周公,10点多才醒! ...
标签: Web开发
这节我们讲 类的概述 我们一直说c#是面对对象的编程,而前面我们学了,每个对象都必定属于一个类,.net 中已经定义好很多的类,但是,在实际的编程中,我们还必须得再量身为程序定制一些类. C#中所有的类都直接或间接继承自System.Object类,这使得C#中的类得以单根继承。如果我们没有明确指定继承类,编译器缺省认为该类继承...
Visual Studio 2005 [Whidbey] 抢先体验版 [Express Beta 1 ] 出来有一段时间了,并且在微软的官方网站上有免费的下载(下载地址:http://lab.msdn.microsoft.com/vs2005/)。就本人而言是非常喜欢c#这一新生的语言的。也许并不能说它是新生的,它是对以往各种语言的提炼,或许它是站在巨人的肩膀上的,所以才显得如此的优秀。伴随体验版而...
标签: Web开发
这节我们学习三个控件,他们分别是:HiddenField,Literal,LinkButton 我们这里的演示用LinkButton ,因为这个控件在用法上和BUTTON 差不多,就长相有点希奇,也许是控件们性开放,HyperLink和Button瞎整,结果就有了LinkButton ,可你别说,他虽然这样名不正言不顺的出来了,可他的贡献是很不错的,所以,得表扬! 我们是首先学...

经验教程

637

收藏

5
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部