Share via


_XDocument3.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.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 _XDocument3
Dim value As Boolean

value = instance.IsRecovered
bool IsRecovered { get; }

Property value

Type: System.Boolean

Implements

_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

_XDocument3 interface

_XDocument3 members

IsRecovered overload

Microsoft.Office.Interop.InfoPath.SemiTrust namespace