Share via


Signature.Comment property

Gets the text comment that was added to the digital signature associated with a form or a set of signed data in a form.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
ReadOnly Property Comment As String
    Get
'Usage
Dim instance As Signature
Dim value As String

value = instance.Comment
string Comment { get; }

Property value

Type: System.String

Examples

In the following example, the Comment property of the SignatureObject object is displayed in a message box:

public void DisplaySignatureProperties()
{
SignatureObject mySignature = thisXDocument.SignedDataBlocks[0].Signatures[0];
string signatureComment = mySignature.Comment;
thisXDocument.UI.Alert("Comment = " + signatureComment);
}

See also

Reference

Signature interface

Signature members

Microsoft.Office.Interop.InfoPath namespace