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