[]
Countersign the signature, if the signature has been signed.
void Countersign(X509Certificate2 certificate)
Sub Countersign(certificate As X509Certificate2)
| Type | Name | Description |
|---|---|---|
| X509Certificate2 | certificate | The certificate that will be used to countersign this signature. |
workbook.Open(GetSignedWorkbookStream());
ISignature signature = workbook.Signatures[0];
X509Certificate2 certificate = GetSigningCertificate();
signature.Countersign(certificate);
| Type | Condition |
|---|---|
| InvalidOperationException | The signature has not been signed. |