GdPicture.NET.14.API
GdPicture14 Namespace / GdPicturePDF Class / Dispose() Method
Example





In This Topic
Dispose() Method
In This Topic
Disposes already used GdPicturePDF object completely. All related resources used by this object are released.

This method implicitly calls the GdPicturePDF.CloseDocument method.

Syntax
'Declaration
 
Public Sub Dispose() 
public void Dispose()
public procedure Dispose(); 
public function Dispose();
public: void Dispose(); 
public:
void Dispose(); 
Example
How to create and dispose of a GdPicturePDF object.
'The elementary use of the Dispose() method.
Dim gdpicturePDF As New GdPicturePDF()
'You can do your stuff with gdpicturePDF here.
gdpicturePDF.Dispose()
            
'The very good practice is to use the keyword "using".
Using gdpicturePDF As New GdPicturePDF()
'You can do your stuff with gdpicturePDF here.
'You do not need to call the Dispose() method, it is called automatically inside the "using" statement.
End Using
//The elementary use of the Dispose() method.
GdPicturePDF gdpicturePDF = new GdPicturePDF();
//You can do your stuff with gdpicturePDF here.
gdpicturePDF.Dispose();
            
            
//The very good practice is to use the keyword "using".
using (GdPicturePDF gdpicturePDF = new GdPicturePDF())
{
    //You can do your stuff with gdpicturePDF here.
    //You do not need to call the Dispose() method, it is called automatically inside the "using" statement.
}
See Also