假设有一个ASP dot Web应用程序和一个dot类库 (用vb dot编写)。 Web应用程序引用类库。 类库包含... 公共类测试 公共共享属性()作为字符串 ... 结束财产 结束班级 当然, Web应用程序被许多用户并行使用。现在,对于每个用户,上述属性是否会存在一次,或者对于 所有用户是否只存在一次? Michael G. Schneider
解决方案所有用户都会看到相同的属性值。 " Michael G施奈德 < mg*@newsgroups.nospamwrote in message news:e4 ************** @ TK2MSFTNGP03.phx.gbl ... 假设有一个ASP dot Web应用程序和一个dot类库 (用vb dot编写)。 Web应用程序引用了类 库。类库包含... 公共类测试 公共共享属性()为字符串 ... 结束属性 结束类 当然,许多用户并行使用Web应用程序。现在,对于每个用户,上述属性是否会存在一次,或者对于所有用户是否只存在一次 ? Michael G. Schneider
" Aidy" < ai ** @ xxnoemailxxschrieb im Newsbeitrag 新闻:_8 **************************** ** @ bt ... 所有用户都会看到相同的属性值。
非常感谢非常快速的回复。 是否有可能拥有全局变量?在DLL中,存在 每用户? Michael G. Schneider
如果你想要每个用户的东西然后使用Session对象。 " Michael G. Schneider" < mg*@newsgroups.nospamwrote in message news:ew ************** @ TK2MSFTNGP02.phx.gbl ... " Aidy" < ai ** @ xxnoemailxxschrieb im Newsbeitrag 新闻:_8 **************************** ** @ bt ... >所有用户都会看到相同的属性值。
非常感谢非常快速的响应。 是否可以拥有一个全局变量?在DLL中,存在 每用户? Michael G. Schneider
Suppose there is a ASP dot web application and a dot class library (written with vb dot). The web application references the class library. The class library contains a ... Public Class test Public Shared Property() As String ... End Property End Class Of course, the web application is used by many user in parallel. Now, will the above property exists once for each user, or will it exist only once for all users? Michael G. Schneider
解决方案 All users will see the same property value. "Michael G. Schneider" <mg*@newsgroups.nospamwrote in message news:e4**************@TK2MSFTNGP03.phx.gbl... Suppose there is a ASP dot web application and a dot class library (written with vb dot). The web application references the class library. The class library contains a ... Public Class test Public Shared Property() As String ... End Property End Class Of course, the web application is used by many user in parallel. Now, will the above property exists once for each user, or will it exist only once for all users? Michael G. Schneider"Aidy" <ai**@xxnoemailxxschrieb im Newsbeitrag news:_8******************************@bt... All users will see the same property value.
Thanks a lot for the very fast response. Is it possible to have a "global variable" in the DLL, which exists per-user? Michael G. Schneider
If you want something per-user then use the Session object. "Michael G. Schneider" <mg*@newsgroups.nospamwrote in message news:ew**************@TK2MSFTNGP02.phx.gbl... "Aidy" <ai**@xxnoemailxxschrieb im Newsbeitrag news:_8******************************@bt... >All users will see the same property value.Thanks a lot for the very fast response. Is it possible to have a "global variable" in the DLL, which exists per-user? Michael G. Schneider
更多推荐
DLL中的公共共享属性
发布评论