数据集处置 [英] Dataset dispose

查看:53
本文介绍了数据集处置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

数据集dispose是否会引导相关的dataadpator,或者数据库是否也会支付
处理?

或者我需要逐个处理它们?

Does dataset dispose will lead the related dataadpator , or database will
dispose also ?
Or I need to dispose them one by one ??

推荐答案

4月20日凌晨4:56,Agnes < a ... @ dynamictech.com.hkwrote:
On Apr 20, 4:56 am, "Agnes" <a...@dynamictech.com.hkwrote:

数据集dispose是否会引导相关的dataadpator,或数据库将

dispose还是吗?

或者我需要一个一个地处理它们?
Does dataset dispose will lead the related dataadpator , or database will
dispose also ?
Or I need to dispose them one by one ??



您不需要在DataSet上调用Dispose。这是规则的少数几个

例外之一,当你使用一个对象完成
时,你应该调用Dispose。建议您继续调用

尽管处理连接和数据适配器对象。


不,在DataSet上调用Dispose不会丢弃任何其他内容。

You do not need to call Dispose on a DataSet. It''s one of the few
exceptions to the rule that you should call Dispose when you''re
finished using an object. It is recommended that you continue calling
Dispose on connection and data adapter objects though.

And no, calling Dispose on a DataSet will not dispose anything else.


你不需要打电话。如果对象不合适,请在任何时候打开


自己清理后然后打电话给M
you don''t need to call .Dispose on anythnig

if the objects don''t clean up after themselves then call up M


tech

支持


这个CRAP是不可视的或基本的/>

4月20日上午7:56,Brian Gideon< briangid ... @ yahoo.comwrote:
tech
support

THIS CRAP IS NEITHER VISUAL NOR BASIC

On Apr 20, 7:56 am, Brian Gideon <briangid...@yahoo.comwrote:

4月20,4:56 am,Agnes, < a ... @ dynamictech.com.hkwrote:
On Apr 20, 4:56 am, "Agnes" <a...@dynamictech.com.hkwrote:

数据集dispose是否会引导相关的dataadpator,或数据库将

dispose还是吗?

或者我需要一个一个地处理它们?
Does dataset dispose will lead the related dataadpator , or database will
dispose also ?
Or I need to dispose them one by one ??



您不需要在DataSet上调用Dispose。这是规则的少数几个

例外之一,当你使用一个对象完成
时,你应该调用Dispose。建议您继续调用

尽管处理连接和数据适配器对象。


不,在DataSet上调用Dispose不会丢弃任何其他内容。


You do not need to call Dispose on a DataSet. It''s one of the few
exceptions to the rule that you should call Dispose when you''re
finished using an object. It is recommended that you continue calling
Dispose on connection and data adapter objects though.

And no, calling Dispose on a DataSet will not dispose anything else.



这篇关于数据集处置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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