DLL中的公共共享属性

编程入门 行业动态 更新时间:2024-10-28 20:30:21
本文介绍了DLL中的公共共享属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

假设有一个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中的公共共享属性

本文发布于:2023-11-28 17:22:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1643291.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:属性   DLL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!