SignedCms.RemoveCertificate(X509Certificate2) Method

Definition

Removes the specified certificate from the collection of certificates for the encoded CMS/PKCS #7 message.

C#
public void RemoveCertificate(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);

Parameters

certificate
X509Certificate2

The certificate to remove from the collection.

Exceptions

The certificate was not found.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9