Udostępnij za pośrednictwem


DocumentBase.Signatures Property

Gets a SignatureSet that represents the digital signatures for the document.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public ReadOnly Property Signatures As SignatureSet
    Get
public SignatureSet Signatures { get; }

Property Value

Type: Microsoft.Office.Core.SignatureSet
A SignatureSet that represents the digital signatures for the document.

Remarks

To digitally sign Microsoft Office Word documents and verify other signatures in them, you need the Microsoft CryptoAPI and a unique digital signature certificate. The CryptoAPI is installed with Microsoft Internet Explorer 4.01 and higher. You can obtain a digital signature certificate from a certification authority.

Examples

The following code example displays the Signatures dialog box, with which you can add a digital signature to the document. To use this example, run it from the ThisDocument class in a document-level project.

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

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace