共用方式為


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

要從集合中移除的憑證。

例外狀況

找不到憑證。

適用於