hi guys, i want to know that what is the different between close method and dispose method in vb.net

ex:
take that oledbConnection as newConn

what is the different between these two
.....?
newConn.close() and newConn.dispose()

newConn.close() - It ends the database session which was established with newConn.open() method.

newConn.dispose() - It releases all resources used by an object.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.