SignedDataBlock.Sign method
Invokes the Digital Signatures Wizard to add a digital signature to the currently selected set of data which can be signed in a Microsoft Office InfoPath form.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
Sub Sign
'Usage
Dim instance As SignedDataBlock
instance.Sign()
void Sign()
Remarks
The new signature uses the default signature template, and it is applied to the SignedDataBlockObject object. Calling this method advances the Digital Signatures Wizard to the second step in the signing process, selecting a certificate.
Examples
The following example will advance the Digital Signature Wizard dialog to the Select a Certificate step of the wizard:
thisXDocument.SignedDataBlocks[0].Sign();