Asp.net应用程序对象 [英] Asp.net Application object

查看:72
本文介绍了Asp.net应用程序对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我对Application对象有些困惑.
是为每个用户创建应用程序对象,还是仅在网站运行并且仅将所有其他即将到来的用户附加到该应用程序对象时创建一次.
没有用户访问网站时,Application对象是否结束?
请指导
问候
TanzeelurRehman

Hi Every one
I am having a bit confusion regarding the Application object.
Is application object is created for every user or it is created only once when the website runs and all other upcoming users are simply attached to the application object.
Is Application object ends when there are no user to access the website?
Please guide
Regard
TanzeelurRehman

推荐答案

Application对象由第一个用户创建,并在最后一个用户会话结束时销毁.因此,将信息保存在...中非常危险.

与往常一样, MSDN [
The Application object is created by the first user, and destroyed when the last user session ends. It is thus quite dangerous to keep information in...

As usual, MSDN[^] can tell you more.


这可能对您有所帮助.

http://dotnetslackers.com/articles/iis/ASPNETInternalsIISAndTheProcessModel.aspx [
This may help you.

http://dotnetslackers.com/articles/iis/ASPNETInternalsIISAndTheProcessModel.aspx[^]


这篇关于Asp.net应用程序对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆