如何在asp.net中使用处置方法 [英] how to use dispose method in asp.net

查看:94
本文介绍了如何在asp.net中使用处置方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何在asp.net中使用处理方法

您可以给我发送链接吗?

解决方案

尝试:

 myObject.Dispose(); 


.Net框架就是.Net框架,无论您在什么平台上使用它(ASP.Net,Winforms,WPF/Silverlight,控制台).如果可以使用该方法,则可以使用它.


只需添加John和OriginalGriff的答案即可.
Dispose方法用于释放应用程序使用的资源.

请参阅
1. 何时使用Dispose方法 [ ^ ]
2. 如何使用Dispose [ ^ ]
3. 何时使用Dispose&何时使用Finalise [ ^ ]
4. 另一篇文章 [ 解决方案

Try:

myObject.Dispose();


The .Net framework is the .Net framework, no matter what platform you use it on (ASP.Net, Winforms, WPF/Silverlight, console). If the method is available, you can use it.


Just to add to the answers by John and OriginalGriff.
Dispose method is used to free the resources used by the application.

Refer
1.
When to use Dispose Method[^]
2. How to use Dispose[^]
3. When to use Dispose & When to use Finalise[^]
4. One more article[^]

Hope this helps.
All the best.


这篇关于如何在asp.net中使用处置方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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