Share via


DocumentBase.Signatures 屬性

取得 SignatureSet,表示文件的數位簽章。

命名空間:  Microsoft.Office.Tools.Word
組件:  Microsoft.Office.Tools.Word.v4.0.Utilities (在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)

語法

'宣告
Public ReadOnly Property Signatures As SignatureSet
public SignatureSet Signatures { get; }

屬性值

型別:Microsoft.Office.Core.SignatureSet
SignatureSet ,表示文件的數位簽章。

備註

若要數位簽署 Microsoft Office Word 文件,並驗證文件中的其他簽章,則需要 Microsoft CryptoAPI 和唯一的數位簽章憑證。 CryptoAPI 是隨 Microsoft Internet Explorer 4.01 (含) 以上版本一起安裝。 您可以從憑證授權單位取得數位簽章憑證。

範例

下列程式碼範例會顯示 [簽章] 對話方塊,讓您將數位簽章加入至文件。 若要使用這個範例,請在文件層級專案中的 ThisDocument 類別執行。

Private Sub DocumentSignatures()
    Me.Signatures.Add()
End Sub 
private void DocumentSignatures()
{
    this.Signatures.Add();
}

.NET Framework 安全性

請參閱

參考

DocumentBase 類別

Microsoft.Office.Tools.Word 命名空間