Signature.Certificate property
Gets the CertificateObject object for the X.509 digital certificate that was used to sign 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 Certificate As CertificateObject
Get
'Usage
Dim instance As Signature
Dim value As CertificateObject
value = instance.Certificate
CertificateObject Certificate { get; }
Property value
Type: Microsoft.Office.Interop.InfoPath.CertificateObject
Examples
In the following example, the Certificate property of the SignatureObject object is used to access the certificate of the digital signature, and display the IssuedTo property of the CertificateObject object in a message box:
public void DisplaySignatureProperties()
{
SignatureObject mySignature = thisXDocument.SignedDataBlocks[0].Signatures[0];
CertificateObject signatureCertificate = mySignature.Certificate;
thisXDocument.UI.Alert("Certificate Issued To = " + signatureCertificate.IssuedTo);
}