WordDocument .Dispose() and Close()

What exactly is the difference between the .Dispose() and .Close() methods? 
The API reference only says: 
Close(): Release the resources occupied by this WordDocument instance.
Dispose(): Releases all resources used by the object.

1 Reply 1 reply marked as answer

LB Lokesh Baskar Syncfusion Team April 14, 2021 01:04 PM UTC

Hi Ellen, 
 
Thank you for contacting Syncfusion support.

 
In DocIO, WordDocument class internally inherited the IDisposable interface. So, we have implemented Dispose method. In DocIO library, internally Dispose() and Close() does the same implementation but, Dispose method additionally handled the releasing resources as per IDisposable. 

Please let us know if you have any questions.
 
 
Regards,  
Lokesh B 


Marked as answer
Loader.
Up arrow icon