SignedCms.RemoveCertificate(X509Certificate2) 方法

定义

从用于编码 CMS/PKCS #7 消息的证书集合中删除指定的证书。

public:
 void RemoveCertificate(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public void RemoveCertificate (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
member this.RemoveCertificate : System.Security.Cryptography.X509Certificates.X509Certificate2 -> unit
Public Sub RemoveCertificate (certificate As X509Certificate2)

参数

certificate
X509Certificate2

要从集合中删除的证书。

例外

找不到该证书。

适用于