_XDocument4.IsRecovered property
Gets a value that indicates whether a Microsoft InfoPath form was last saved by an AutoRecover save operation.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
ReadOnly Property IsRecovered As Boolean
Get
'Usage
Dim instance As _XDocument4
Dim value As Boolean
value = instance.IsRecovered
bool IsRecovered { get; }
Property value
Type: System.Boolean
Returns Boolean.
Implements
Examples
The following example shows how to use the IsRecovered property to indicate, when the form is opened, whether the form was last saved by an AutoRecover save operation:
[InfoPathEventHandler(EventType=InfoPathEventType.OnLoad)]
public void OnLoad(DocReturnEvent e)
{
thisXDocument.UI.Alert("Last saved by an AutoRecover save operation: " + thisXDocument.IsRecovered);
}