SignedDataBlockCollection Class
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.
The collection of SignedDataBlock objects that correspond to the sets of data in the form template that can be digitally signed.
public ref class SignedDataBlockCollection abstract : System::Collections::IEnumerable
public abstract class SignedDataBlockCollection : System.Collections.IEnumerable
type SignedDataBlockCollection = class
interface IEnumerable
Public MustInherit Class SignedDataBlockCollection
Implements IEnumerable
- Inheritance
-
SignedDataBlockCollection
- Implements
Remarks
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[Int32] 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[Int32] 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.
Constructors
SignedDataBlockCollection() |
Properties
Count |
Gets the number of SignedDataBlock objects defined in the form template. |
Item[Int32] |
Gets a reference to the specified SignedDataBlock object from the SignedDataBlockCollection object based on index position. |
Methods
GetEnumerator() |
Gets a System.Collections.IEnumerator object that iterates over all entries in the SignedDataBlockCollection collection. |
ShowSignatureDialog() |
Displays the Sign dialog box. |