Share via


_XDocument3.IsNew Property

Gets a value that indicates whether a newly created Microsoft Office InfoPath form has been saved.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
ReadOnly Property IsNew As Boolean
    Get
'Usage
Dim instance As _XDocument3
Dim value As Boolean

value = instance.IsNew
bool IsNew { get; }

Property Value

Type: System.Boolean
true, data in the form's underlying XML document has not been saved since the form was created; otherwise false.

Implements

_XDocument2.IsNew

Remarks

If the IsNew property is true, data in the form's underlying XML document has not been saved since the form was initially created. If false, the data in the new form's underlying XML document has been saved.

Examples

In the following example, the IsNew property of the XDocument object is used to determine whether the data in a new form has been saved:

if (thisXDocument.IsNew)
{
 thisXDocument.UI.Alert("Please save your form.");
}

See Also

Reference

_XDocument3 Interface

_XDocument3 Members

IsNew Overload

Microsoft.Office.Interop.InfoPath Namespace