sqlcommand.dispose

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

Silly question again. I found that Even I run Sqlcommand.dispose,
I still can use it , does anyone know ?
 
Agnes said:
Silly question again. I found that Even I run Sqlcommand.dispose,
I still can use it , does anyone know ?

The consequences of using a disposed object are undocumented, and liable to
change in future releases. So I wouldn't rely on the fact that SqlCommand
doesn't really do anyting when you Dispose it.

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top