ASP.NET 网站上的静态方法 [英] Static methods on ASP.NET web sites

查看:36
本文介绍了ASP.NET 网站上的静态方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道..如果我在 asp.net 网站(普通版)上有一个静态方法,所有会话的所有用户都可以访问吗?

i was wondering.. if i have a static method on an asp.net web site (plain vanilla), is that accessible by all users of all sessions?

我想我说的是每个客户端可用的方法的单个实例?或者该网站的所有客户是否有1个实例..

I guess what i am saying is the single instance of a method available to each client? or is there 1 instance for all clients for the site..

推荐答案

对于同一个池中的所有用户,静态值是相同的.

The static value is the same for all users on the same pool.

不同的池有不同的静态值.

Different pools have different static values.

会话与静态值无关,同一池中的用户具有相同的静态值.

The session have nothing to do with the static values, and the users that are on the same pool have the same static values.

这篇关于ASP.NET 网站上的静态方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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