Share via


XDocument.IsRecovered Property

InfoPath Developer Reference

A read-only property that returns a Boolean value that indicates whether a Microsoft Office InfoPath 2007 form was last saved by an AutoRecover save operation. Read-only

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.IsRecovered

expression   An expression that returns a XDocument object.

Return Value
Boolean

Remarks

Security Level 2: 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.

Example

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:

JScript
  function XDocument::OnLoad(eventObj)
{
    XDocument.UI.Alert("Last saved by an AutoRecover save operation: " + XDocument.IsRecovered);
}

See Also