SaveCancelEventArgs.CloseIfSaveCancelled Property (Microsoft.Office.InfoPath)
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)
When closing InfoPath, the user is prompted to save the document if the Dirty property of the XmlForm object is true. If the CloseIfSaveCancelled property is false, which is the default setting, InfoPath will be prevented from closing if the save operation was cancelled (that is, if the CancelableArgs.Cancel property is true). To allow InfoPath to close without saving, set the CloseIfSaveCancelled property to true.
This type or member can be accessed only from code running in forms opened in Microsoft Office InfoPath 2007.