SignedDataBlock.Sign Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 form.
public:
void Sign();
public void Sign ();
abstract member Sign : unit -> unit
Public Sub Sign ()
Examples
The following example will advance the Digital Signature Wizard dialog to the Select a Certificate step of the wizard:
thisXDocument.SignedDataBlocks[0].<span class="label">Sign</span>();
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.