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 InfoPath 2010 form.

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

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

The following example will advance the Digital Signature Wizard dialog to the Select a Certificate step of the wizard:

thisXDocument.SignedDataBlocks[0].Sign();

See Also

Reference

SignedDataBlock Interface

SignedDataBlock Members

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace