Compartir a través de


SaveCancelEventArgs.CloseIfSaveCancelled Property

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.

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

Syntax

'Declaration
Public MustOverride Property CloseIfSaveCancelled As Boolean
    Get
    Set
'Usage
Dim instance As SaveCancelEventArgs
Dim value As Boolean

value = instance.CloseIfSaveCancelled

instance.CloseIfSaveCancelled = value
public abstract bool CloseIfSaveCancelled { get; set; }

Property Value

Type: System.Boolean
true if InfoPath is allowed to close when saving a dirty form was cancelled; otherwise false.

Remarks

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 InfoPath Filler.

See Also

Reference

SaveCancelEventArgs Class

SaveCancelEventArgs Members

Microsoft.Office.InfoPath Namespace