_XDocument4.IsRecovered Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns Boolean.
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>);
}