VB.NET
VB.NET
Example: Crypt2.GetSignatureSigningTimeStr method
Demonstrates how to call the GetSignatureSigningTimeStr method.Chilkat VB.NET Downloads
Dim success As Boolean = False
Dim crypt As New Chilkat.Crypt2
success = crypt.VerifyP7M("qa_data/cades/CAdES-T/Signature-C-T-1.p7m","qa_output/out.dat")
If (success = False) Then
Debug.WriteLine(crypt.LastErrorText)
Exit Sub
End If
Dim numSigners As Integer = crypt.NumSignerCerts
Debug.WriteLine("Num Signers = " & numSigners)
Dim i As Integer = 0
While i < numSigners
If (crypt.HasSignatureSigningTime(i) = True) Then
Debug.WriteLine((i + 1) & ": " & crypt.GetSignatureSigningTimeStr(i))
Else
Debug.WriteLine((i + 1) & ": has no signing time.")
End If
i = i + 1
End While
' Sample output:
' Num Signers = 1
' 1: Sun, 03 Dec 2013 06:57:41 GMT