Share via


XDocument.IsSigned Property

InfoPath Developer Reference

A read-only property that returns a Boolean value that indicates whether a Microsoft Office InfoPath 2007 form has been digitally signed using digital signatures. Read-only

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.IsSigned

expression   An expression that returns a XDocument object.

Return Value
Boolean

Remarks

If the IsSigned property is True, the form has been digitally signed. If False, the form has not been digitally signed.

InfoPath uses XML Signatures to digitally sign forms.

Bb250799.vs_note(en-us,office.12).gif  Note
If a form has been digitally signed, its underlying XML document is placed in a read-only state.

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

In the following example, the IsSigned property of the XDocument object is used to determine whether a form has been digitally signed:

JScript
  if (XDocument.IsSigned)
   XDocument.UI.Alert("This form contains digital signatures.");
else
   return;

See Also