Export (0) Print
Expand All

SignedDataBlockCollection class

The collection of SignedDataBlock objects that correspond to the sets of data in the form template that can be digitally signed.

System.Object
  Microsoft.Office.InfoPath.SignedDataBlockCollection

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

public abstract class SignedDataBlockCollection : IEnumerable

A SignedDataBlock object in a SignedDataBlockCollection object returned for a form corresponds to a set of data that was configured in the form template at design time using the Digital Signature category in the Form Options dialog box. If the Allow signing parts of the formoption is selected in the Digital Signature category of the Form Options dialog box, there will be one SignedDataBlock object in the collection that represents each set of data configured using that option. If the Allow signing the entire form option is selected, there is only one SignedDataBlock object that represents the entire form.

Alternatively, if you create a form template that can be opened only in the InfoPath editor, you can add one or more Signature Line controls to the form, and then use the settings on the Advanced tab of the control's Properties dialog box to configure digital signing for all or part of a form.

The SignedDataBlockCollection class implements properties that can be used to access the SignedDataBlock objects associated with a form. The SignedDataBlockCollection is accessed through the SignedDataBlocks property of the XmlForm object.

The Item property and Count property of the SignedDataBlockCollection class are used to access and count the SignedDataBlock objects in the collection. You can provide a name or index value in your form code that allows InfoPath to use the Item method to access a SignedDataBlock object.

The SignedDataBlockCollection class also provides the ShowSignatureDialog method which displays the Sign dialog box at run time, if digital signatures were enabled in the form template at design time.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft