_XDocument2.IsRecovered Property
Gets a value that indicates whether a form was last saved by an AutoRecover save operation.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
ReadOnly Property IsRecovered As Boolean
Get
'Usage
Dim instance As _XDocument2
Dim value As Boolean
value = instance.IsRecovered
bool IsRecovered { get; }
Property Value
Type: System.Boolean
Remarks
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
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);
}