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.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.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
Remarks
Important
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
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);
}