SaveCancelEventArgs Class

Provides data to the CancelableArgs property of the SaveEventArgs object.

Inheritance Hierarchy

System.Object
  System.EventArgs
    System.ComponentModel.CancelEventArgs
      Microsoft.Office.InfoPath.XmlFormCancelEventArgs
        Microsoft.Office.InfoPath.SaveCancelEventArgs

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

Syntax

'Declaration
Public MustInherit Class SaveCancelEventArgs _
    Inherits XmlFormCancelEventArgs
'Usage
Dim instance As SaveCancelEventArgs
public abstract class SaveCancelEventArgs : XmlFormCancelEventArgs

Remarks

The SaveCancelEventArgs class provides the CloseIfSaveCancelled property for determining whether to override the default behavior and allow InfoPath to close if saving a dirty form (a new or changed form that hasn't been saved) failed during the Save event.

The SaveCancelEventArgs class also provides the Cancel property inherited from the CancelEventArgs class that can be used to cancel the Save event, and the Message and MessageDetails properties inherited from the XmlFormCancelEventArgs class for providing a custom error message when the Save event is cancelled.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SaveCancelEventArgs Members

Microsoft.Office.InfoPath Namespace