Edit

Share via


SaveCancelEventArgs Class

Definition

Provides data to the CancelableArgs property of the SaveEventArgs object.

public ref class SaveCancelEventArgs abstract : Microsoft::Office::InfoPath::XmlFormCancelEventArgs
public abstract class SaveCancelEventArgs : Microsoft.Office.InfoPath.XmlFormCancelEventArgs
type SaveCancelEventArgs = class
    inherit XmlFormCancelEventArgs
Public MustInherit Class SaveCancelEventArgs
Inherits XmlFormCancelEventArgs
Inheritance

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.

Constructors

SaveCancelEventArgs()

Properties

CloseIfSaveCancelled

Gets or sets whether a dirty form (a new or changed form that hasn't been saved) can be closed when a save operation is cancelled.

Message

Gets or sets the short message that is displayed when the event is cancelled.

(Inherited from XmlFormCancelEventArgs)
MessageDetails

Gets or sets the detailed message when the event is cancelled.

(Inherited from XmlFormCancelEventArgs)

Applies to