SignedCms.RemoveCertificate(X509Certificate2) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从用于编码 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
要从集合中删除的证书。
例外
找不到该证书。