SignEvent.XDocument Property

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

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.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.SemiTrust.XDocument

Implements

DocReturnEvent.XDocument
DocEvent.XDocument

Remarks

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, 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.SemiTrust Namespace