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