SaveEvent.PerformSaveOperation Method
Performs the save operation requested by the user.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
Function PerformSaveOperation As Boolean
'Usage
Dim instance As SaveEvent
Dim returnValue As Boolean
returnValue = instance.PerformSaveOperation()
bool PerformSaveOperation()
Return Value
Type: System.Boolean
true if the save operation is successful; if the user cancels the operation by clicking Cancel in the Save As dialog box, returns false.
Remarks
The PerformSaveOperation method performs a "save" or "save as" operation depending on the value of the IsSaveAs property. If the operation is successful, the IsDirty property is set to false and the PerformSaveOperation method returns true.
Important
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
Examples
In the following example, the PerformSaveOperation method of the SaveEventObject object is used to save the form using the internal definition of save.
e.PerformSaveOperation();