If there is a Close method, it usually means that the object is holding unmanaged resources which should be released as soon as possible. The Close method is provided so that you can free them deterministically rather than wait on the non-deterministic behaviour of the Garbage Collection routine. It is also a good idea to set your object references to Nothing if you are through with the object and the object reference will not go out of scope soon.
how does this affect connection pooling? I.e., if I want to maintain maxiumum connection pooling properties, would setting an object = Nothing interrupt this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.