Signature.Certificate Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
property Microsoft::Office::Interop::InfoPath::CertificateObject ^ Certificate { Microsoft::Office::Interop::InfoPath::CertificateObject ^ get(); };
public Microsoft.Office.Interop.InfoPath.CertificateObject Certificate { get; }
member this.Certificate : Microsoft.Office.Interop.InfoPath.CertificateObject
Public ReadOnly Property Certificate As CertificateObject
Property Value
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.<span class="label">Certificate</span>;
thisXDocument.UI.Alert("Certificate Issued To = " + signatureCertificate.IssuedTo);
}