Share via


SignEvent.XDocument Property

Gets a reference to the XDocument object associated with the OnSign event.

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

Syntax

'Declaration
ReadOnly Property XDocument As XDocument
    Get
'Usage
Dim instance As SignEvent
Dim value As XDocument

value = instance.XDocument
XDocument XDocument { get; }

Property Value

Type: Microsoft.Office.Interop.InfoPath.XDocument

Implements

DocReturnEvent.XDocument

Remarks

In the following example, a variable is set to true if the XDocument is signed and false if the XDocument is not signed:

public void OnSign(SignEvent e)
{
 Signature mySignedData = e.SignedDataBlock.Signatures.Create();
 mySignedData.Sign();
 bool IsSignedDoc = e.XDocument.IsSigned;
 e.ReturnStatus = IsSignedDoc;
}

See Also

Reference

SignEvent Interface

SignEvent Members

XDocument Overload

Microsoft.Office.Interop.InfoPath Namespace