| |||||||
OleDbDataReader.Close MethodSystem.Data.OleDb Namespace OleDbDataReader Class Closes the OleDbDataReader object. [ VB ] NotOverridable Public Sub Close ( ) [ C# ] public void Close ( ); [ C++ ] public: __sealed void Close ( ); [ C++ ] public function Close ( ); RemarksYou must explicitly call the Close method when you are through using the OleDbDataReader to use the associated OleDbConnection for any other purpose. ExampleThe following example initializes an OleDbConnection, an OleDbCommand, and an OleDbDataReader. The example reads through the data, writing each row of data to the page, then closes the reader and the connection.
See Also |
| ||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme