_XDocument3.IsRecovered Property

Definition

Gets a value that indicates whether a Microsoft 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

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.<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:

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

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.

Applies to