SignedDataBlocksCollection Interface

Definition

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

public interface class SignedDataBlocksCollection : Microsoft::Office::Interop::InfoPath::SemiTrust::SignedDataBlocks
[System.Runtime.InteropServices.Guid("096cd712-0786-11d1-95fa-0080c78ee3bb")]
public interface SignedDataBlocksCollection : Microsoft.Office.Interop.InfoPath.SemiTrust.SignedDataBlocks
type SignedDataBlocksCollection = interface
    interface SignedDataBlocks
Public Interface SignedDataBlocksCollection
Implements SignedDataBlocks
Attributes
Implements

Examples

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()
{
<span class="label">SignedDataBlocks</span> mySignedDataBlocks = thisXDocument.<span class="label">SignedDataBlocks</span>;
 thisXDocument.UI.Alert("Sets of data which can be signed = " + mySignedDataBlocks.Count.ToString());
 for(int i=0; i&lt; mySignedDataBlocks.Count; i++)
 {
  thisXDocument.UI.Alert("SDB #" + i.ToString() + " name is " + mySignedDataBlocks[i].Name + " and has " + mySignedDataBlocks[i].Signatures.Count.ToString() + " signatures.");
 }
}

Remarks

This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, 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.

Properties

Count

Gets the number of SignedDataBlockObject objects in the form template.

(Inherited from SignedDataBlocks)
Item[Object]

Gets a reference to the specified SignedDataBlockObject object from the SignedDataBlocksCollection collection, based on position or name.

(Inherited from SignedDataBlocks)

Methods

GetEnumerator()

Gets an IEnumerator that iterates over all entries in the SignedDataBlocksCollection object.

(Inherited from SignedDataBlocks)

Applies to