Edit

Share via


_XDocument3.IsRecovered Property

Definition

Gets a value that indicates whether a Microsoft Office InfoPath form was last saved by an AutoRecover save operation.

public:
 property bool IsRecovered { bool get(); };
public bool IsRecovered { get; }
member this.IsRecovered : bool
Public ReadOnly Property IsRecovered As Boolean

Property Value

true if the form was last saved by an AutoRecover save operation; otherwise false.

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:

public void OnLoad(DocReturnEvent e)
{
 thisXDocument.UI.Alert("Last saved by an AutoRecover save operation: " + thisXDocument.<span class="label">IsRecovered</span>);
}

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:

public void OnLoad(DocReturnEvent e)
{
 thisXDocument.UI.Alert("Last saved by an AutoRecover save operation: " + thisXDocument.<span class="label">IsRecovered</span>);
}

Applies to