共用方式為


WorkbookBase.Signatures 屬性

定義

取得活頁簿數位簽章的集合。

public:
 property Microsoft::Office::Core::SignatureSet ^ Signatures { Microsoft::Office::Core::SignatureSet ^ get(); };
public Microsoft.Office.Core.SignatureSet Signatures { get; }
member this.Signatures : Microsoft.Office.Core.SignatureSet
Public ReadOnly Property Signatures As SignatureSet

屬性值

Microsoft.Office.Core.SignatureSet 集合,其中包含活頁簿的數字簽名。

範例

下列程式代碼範例會取得附加至目前活頁簿的簽章數目,並向用戶顯示適當的訊息。

此範例適用於檔層級自定義。

private void GetSignatures()
{
    if (this.Signatures.Count == 0)
    {
        MessageBox.Show(
            "There are no signatures that are attached to the " 
            + "current workbook.");
    }
    else
    {
        MessageBox.Show(
            "Number of signatures attached to the current workbook: "
            + this.Signatures.Count.ToString());
    }
}
Private Sub GetSignatures()
    If Me.Signatures.Count = 0 Then
        MessageBox.Show( _
            "There are no signatures that are attached to the " _
            + "current workbook.")
    Else
        MessageBox.Show( _
            "Number of signatures attached to the current workbook: " _
            + Me.Signatures.Count.ToString())
    End If
End Sub

備註

若要以數位方式簽署 Excel 活頁簿並驗證其中的其他簽章,您需要 Microsoft CryptoAPI 和唯一的數位簽名憑證。 CryptoAPI 會與 Microsoft Internet Explorer 4.01 或更新版本一起安裝。 您可以從證書頒發機構單位取得數位簽名憑證。

適用於