Share via


_XDocument4.IsRecovered Property

Gets a value that indicates whether a Microsoft InfoPath 2010 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 _XDocument4
Dim value As Boolean

value = instance.IsRecovered
bool IsRecovered { get; }

Property Value

Type: System.Boolean

Implements

_XDocument3.IsRecovered
_XDocument2.IsRecovered

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);
}

See Also

Reference

_XDocument4 Interface

_XDocument4 Members

IsRecovered Overload

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace