Try OpenEdge Now
skip to main content
.NET Open Clients
Proxy Objects and Methods : Proxy methods : Common methods : Dispose
 
Dispose
The following method makes the object unavailable for further use:
public void
Dispose( )
When you execute the Dispose( ) method on the last available proxy object that shared a particular connection, the client disconnects from the AppServer. In addition, if you execute this method on a ProcObject, the associated persistent procedure on the AppServer is deleted. The connection to the AppServer is automatically released for single-run and singleton procedures after their internal procedures or user-defined functions are completed, and in the case of a single-run procedure, the procedure itself is also automatically deleted form the AppServer. However, the Dispose( ) method does clean up client-side resources for single-run and singleton procedures.