_XDocument2.IsSigned Property

Gets a value that indicates whether a form has been digitally signed using digital signatures.

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

Syntax

'Declaration
ReadOnly Property IsSigned As Boolean
    Get
'Usage
Dim instance As _XDocument2
Dim value As Boolean

value = instance.IsSigned
bool IsSigned { get; }

Property Value

Type: System.Boolean

Implements

_XDocument.IsSigned

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.

Note

If a form has been digitally signed, its underlying XML document is placed in a read-only state.

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.

Examples

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

if (thisXDocument.IsSigned)
{
 thisXDocument.UI.Alert("This form contains digital signatures.");
}

See Also

Reference

_XDocument2 Interface

_XDocument2 Members

IsSigned Overload

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace