Export (0) Print
Expand All

Certificate class

Represents the X.509 digital certificate that has been used to create a signature.


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


Use the Certificate property of the Signature object to return a Certificate object.

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.

In the following example, the Status property of the Certificate class is used to determine the status and other information about the digital certificate used for the first signature on the first set of signed data (or for the entire form, if the entire form is configured to be signed), and display that information in a message box.

Imports Microsoft.VisualBasic.ControlChars
Public Sub CertificateStatusAlert()
    Dim myCertificate As Certificate = _
    MessageBox.Show("IssuedTo: " & myCertificate.IssuedTo & _
        NewLine & "IssuedBy: " & myCertificate.IssuedBy & _
        NewLine & "ExpirationDate: " & myCertificate.ExpirationDate & _
        NewLine & "Status: " + myCertificate.Status.ToString())
End Sub

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2014 Microsoft