Programmer's Guide > Interfaces > ADocument interface > close method
  
close method
Closes the document, freeing all associated memory and system resources (for example, file handles). This method actually decrements the reference count for the document and does not free resources until the reference count becomes zero. The reference count is incremented when the document is associated with a View object.
close()
Parameters
None
Returns
boolean. Returns true if the document was actually closed. false otherwise. Since an exception is thrown on an error, this will always be true when no exception is thrown.
Throws
AOMException
Raised if the method detects any error.