Discussion:
Shared 問題
(时间太久无法回复)
unknown
2006-03-22 02:07:27 UTC
Permalink
單機程式裡面 A使用者建構了兩個 abc類別如果裡面有宣告public shared Var的類別
Var會被a,b彼此影響!!

如果今天在asp裡面有兩個使用者A跟B都建構了abc這個類別
那們A使用abc中的Var會去影響到B使用者建構的abc中的Var嗎???

也就是asp是多人使用的~~A的變更shared會影響B的作業嗎??
¹FMing
2006-03-22 17:38:00 UTC
Permalink
À³žÓ€£·|ªº,asp.net€€,šC€@­ÓšÏ¥ÎªÌ€]Š³ŠÛ€vªºSession
--
§Úªººô¯ž : http://www.aspvista.net ( §¹Šš«×%50)
§ÚªºBloG: http://mingalive.mysinablog.com
³æŸ÷µ{Š¡žÌ­± AšÏ¥ÎªÌ«Øºc€Fšâ­Ó abcÃþ§OŠpªGžÌ­±Š³«Å§ipublic shared VarªºÃþ§O
Var·|³Qa,b©ŒŠ¹ŒvÅT!!
ŠpªG€µ€ÑŠbaspžÌ­±Š³šâ­ÓšÏ¥ÎªÌAžòB³£«Øºc€Fabc³o­ÓÃþ§O
šº­ÌAšÏ¥Îabc€€ªºVar·|¥hŒvÅTšìBšÏ¥ÎªÌ«Øºcªºabc€€ªºVar¶Ü???
璉璉
2006-03-23 02:01:49 UTC
Permalink
Shared ŠbŠP€@­ÓÀ³¥Îµ{Š¡€º·|Š@¥Î¡AŠpªG¥L«Å§i€@­ÓŠ@¥Îªº Shared ª«¥ó·|Š@¥Î¡AŠý­Y¬O«Å§i€@­Ó Shared ªºª«¥ó«¬§O¡A«hÁÙ­n¬Ý¥L«çŒËŠA«Å§i¹êÅ骫¥ó¡A€~¯à§PÂ_¡C

³oÃ䊳Ž£šì€@ÂI Shared ªº¥Î³~
http://www.microsoft.com/taiwan/msdn/columns/mvp/aspxcode.htm
©ó news:%2312%24oedTGHA.4900%40TK2MSFTNGP12.phx.gbl µoªí
--
§Úªººô¯ž : http://www.aspvista.net ( §¹Šš«×%50)
§ÚªºBloG: http://mingalive.mysinablog.com
³æŸ÷µ{Š¡žÌ­± AšÏ¥ÎªÌ«Øºc€Fšâ­Ó abcÃþ§OŠpªGžÌ­±Š³«Å§ipublic shared VarªºÃþ§O
Var·|³Qa,b©ŒŠ¹ŒvÅT!!
ŠpªG€µ€ÑŠbaspžÌ­±Š³šâ­ÓšÏ¥ÎªÌAžòB³£«Øºc€Fabc³o­ÓÃþ§O
šº­ÌAšÏ¥Îabc€€ªºVar·|¥hŒvÅTšìBšÏ¥ÎªÌ«Øºcªºabc€€ªºVar¶Ü???
--
€ô®ü¬ì§Þšt²Î¬ãµoÅçÃÒ€u§@«Ç ASP.NET Web News Reader 0.2.0 UTF-8 Beta
·s»Džs²Õ RSSºô»xµo¥¬ŽúžÕ€€ http://tlcheng.no-ip.com/News/rss2.aspx
ºô¯žŠa¹Ï http://tlcheng.no-ip.com/wwwmap.htm
¬y°ìšŸ¬x/€ôžê·œ¹B¥Î/®}ª@ºô/ªŽºÀ¹Ï/»y­µ³q°T €å³¹»Pµ{Š¡
Basic/Fortran/Windows API/.Net/»²§U»¡©úÀÉ ­ì©lœX¡B€å³¹»P°Qœ×
--
ASPNET News http://tlcheng.no-ip.com/News/ | http://tlcheng.twbbs.org/News/
RSS 2.0 http://tlcheng.no-ip.com/News/rss2.aspx?Action=List&Newsgroup=microsoft.public.tw.dotnet.framework.aspnet
Loading...