This method causes any changes to the compile unit's text buffer to be saved to disk.
Syntax
HRESULT SaveChanges();
Sub SaveChanges
Remarks
If the buffer is successfully saved, the method returns S_OK. If the buffer is currently locked for editing (for example, open in an editor window), the buffer is not saved, and the method returns S_FALSE. If the buffer cannot be saved for any other reason, the method fails.