Share via


SignedDataBlocksCollection - Interface

Collection des objets SignedDataBlockObject du modèle de formulaire tel qu'il est défini dans le fichier de définition du formulaire (.xsf).

Espace de noms :  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly :  Microsoft.Office.Interop.InfoPath.SemiTrust (dans Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntaxe

'Déclaration
<GuidAttribute("096cd712-0786-11d1-95fa-0080c78ee3bb")> _
Public Interface SignedDataBlocksCollection _
    Inherits SignedDataBlocks
'Utilisation
Dim instance As SignedDataBlocksCollection
[GuidAttribute("096cd712-0786-11d1-95fa-0080c78ee3bb")]
public interface SignedDataBlocksCollection : SignedDataBlocks

Remarques

Ce type est le wrapper d’une coclasse requise par le code managé pour l’interopérabilité COM. Utilisez ce type pour accéder aux membres de l’interface COM implémentée par cette coclasse. Pour plus d’informations sur l’interface COM et pour accéder à un lien vers les descriptions de ses membres, voirSignedDataBlocks.

La collection SignedDataBlocksCollection implémente des propriétés qui permettent d'accéder aux objets SignedDataBlock associés à un formulaire. La collection SignedDataBlocksCollection est accessible via la propriété SignedDataBlocks de l'objet XDocument.

Exemples

L'exemple suivant renvoie chaque ensemble de données du formulaire pouvant être signé et affiche une boîte de message contenant le nom et le nombre de signatures de chaque ensemble de données :

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.");
 }
}

Voir aussi

Référence

SignedDataBlocksCollection - Membres

Microsoft.Office.Interop.InfoPath.SemiTrust - Espace de noms