DISPOSE method in asp .net

It is containing all topics related to Visual Basic, .NET Framework, Web Resource, GDI etc.
Ladva Nidhi
Posts: 295
Joined: Sat Sep 20, 2014 5:26 pm

DISPOSE method in asp .net

Postby Ladva Nidhi » Thu Oct 16, 2014 5:17 pm

What is Dispose method? What is the use of DISPOSE method?


Re: DISPOSE method in asp .net

Postby Guest » Mon Aug 03, 2015 8:46 am

1. This has to be implemented in classes implementing IDispose interface.
2. Its the right place for freeing-up unmanaged resources like file, handles, and connections etc.
3. Dispose() method is called explicitely in the code itself.
4. Dispose() method is automatically called (for objects which implement IDispose), when used in a "using" statement.

The dispose method is used to release Unmanaged resourse and to clean up object.

Return to “Visual Basic .NET and ASP.NET”

Who is online

Users browsing this forum: No registered users and 2 guests