SignedDataBlocksCollection 介面
表單範本中 SignedDataBlockObject 物件的集合,如表單定義檔案 (.xsf) 中所定義。
**命名空間:**Microsoft.Office.Interop.InfoPath
**組件:**Microsoft.Office.Interop.InfoPath (於 microsoft.office.interop.infopath.dll 中)
語法
'宣告
<GuidAttribute("096CD712-0786-11D1-95FA-0080C78EE3BB")> _
<CoClassAttribute(GetType(SignedDataBlocksCollectionClass))> _
Public Interface SignedDataBlocksCollection
Inherits SignedDataBlocks
'用途
Dim instance As SignedDataBlocksCollection
[GuidAttribute("096CD712-0786-11D1-95FA-0080C78EE3BB")]
[CoClassAttribute(typeof(SignedDataBlocksCollectionClass))]
public interface SignedDataBlocksCollection : SignedDataBlocks
備註
此類型為 coclass 實作之 COM 介面的包裝函式,屬於 COM 互通性中 Managed 程式碼的必要項。使用包裝實作此介面之 coclass 的類型,即可存取此介面指定的成員。如需該類型 (包括用法、備註及範例) 的詳細資訊,請參閱 SignedDataBlocks。
SignedDataBlocksCollection 集合執行可用來存取與表單關聯的 SignedDataBlock 物件之屬性。SignedDataBlocksCollection 是透過 XDocument 物件的 SignedDataBlocks 屬性來存取。
範例
下列範例傳回可以簽章的表單中每個資料集,並在對話方塊中顯示每個資料集的簽章名稱與數目:
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.");
}
}
請參閱
參考
SignedDataBlocksCollection 成員
Microsoft.Office.Interop.InfoPath 命名空間