SignedDataBlocksCollection 接口
表单模板中 SignedDataBlockObject 对象的集合,如表单定义文件 (.xsf) 中所定义。
命名空间: Microsoft.Office.Interop.InfoPath.SemiTrust
程序集: Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)
语法
声明
<GuidAttribute("096cd712-0786-11d1-95fa-0080c78ee3bb")> _
Public Interface SignedDataBlocksCollection _
Inherits SignedDataBlocks
用法
Dim instance As SignedDataBlocksCollection
[GuidAttribute("096cd712-0786-11d1-95fa-0080c78ee3bb")]
public interface SignedDataBlocksCollection : SignedDataBlocks
备注
此类型是用于 Coclass(托管代码需要此 Coclass 来实现 COM 互操作性)的包装。使用此类型来访问由此 Coclass 实现的 COM 接口。有关 COM 接口的信息(包括指向其成员说明的链接),请参阅SignedDataBlocks.
SignedDataBlocksCollection 集合实现可用于访问与表单相关联的 SignedDataBlock 对象的属性。通过 XDocument 对象的 SignedDataBlocks 属性可以访问 SignedDataBlocksCollection。
示例
以下示例返回表单中可签名的每组数据,并在消息框中显示每组数据中签名的名称和数目:
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.");
}
}