FormsAuthentication.Initialize()做什么?

时间:2009-08-27 00:09:05

标签: asp.net forms-authentication

具体而言,FormsAuthentication.Initialize()方法实际上做了什么?

2 个答案:

答案 0 :(得分:4)

http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.initialize.aspx

当FormsAuthenticationModule创建FormsAuthentication类的实例时,将调用Initialize方法。此方法无意从您的代码中调用。

答案 1 :(得分:0)

如有疑问,请使用Reflector。不幸的是,我没有坐在我的开发PC上,所以我无法告诉你,它的作用是什么,但是使用Reflector,你应该能在几秒钟内找到它。