Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SignedDataBlocksCollection Interface (Microsoft.Office.Interop.InfoPath.SemiTrust)

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

 

Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in microsoft.office.interop.infopath.semitrust.dll)
[CLSCompliantAttribute(false)] 
public interface SignedDataBlocksCollection : SignedDataBlocks

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, see SignedDataBlocks.

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.");
 }
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.