SignedDataBlocksCollection interface

The collection of SignedDataBlockObject objects in the form template as defined in the form definition file (.xsf).

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

public interface SignedDataBlocksCollection : SignedDataBlocks

This type is a wrapper for a COM interface implemented by a coclass that is required by managed code for COM interoperability. To access the members specified by this interface, use the type that wraps the coclass that implements this interface. For information about that type, including usage, remarks, and examples, seeSignedDataBlocks.

The SignedDataBlocksCollection collection implements properties that can be used to access the SignedDataBlock objects associated with a form. The SignedDataBlocksCollection is accessible through the SignedDataBlocks property of the XDocument object.

The following example returns every set of data in the form which can be signed, and displays a message box with the name and number of signatures in each set of data:

public void DisplaySDBProperties()
 SignedDataBlocks mySignedDataBlocks = thisXDocument.SignedDataBlocks;
 thisXDocument.UI.Alert("Sets of data which can be signed = " + mySignedDataBlocks.Count.ToString());
 for(int i=0; i< mySignedDataBlocks.Count; i++)
  thisXDocument.UI.Alert("SDB #" + i.ToString() + " name is " + mySignedDataBlocks[i].Name + " and has " + mySignedDataBlocks[i].Signatures.Count.ToString() + " signatures.");