다음을 통해 공유


CDataRecoveryHandler::AutosaveAllDocumentInfo

Autosaves each file registered with the CDataRecoveryHandler class.

virtual BOOL AutosaveAllDocumentInfo();

Return Value

TRUE if the CDataRecoveryHandler saved all the documents; FALSE if any document was not saved.

Remarks

This method returns TRUE if there are no documents that must be saved. It also returns TRUE without saving any documents if retrieving the CWinApp or CDocManager for the application generates an error.

To use this method, either AFX_RESTART_MANAGER_AUTOSAVE_AT_RESTART or AFX_RESTART_MANAGER_AUTOSAVE_AT_INTERVAL must be set in m_dwRestartManagerSupportFlags. See CDataRecoveryHandler Class for more information about the m_dwRestartManagerSupportFlags parameter.

Requirements

Header: afxdatarecovery.h

See Also

Reference

CDataRecoveryHandler Class

Hierarchy Chart

CWinApp Class

CDataRecoveryHandler::AutosaveDocumentInfo