共用方式為


SignedCms.AddCertificate(X509Certificate2) 方法

定義

將憑證加入至編碼 CMS/PKCS #7 訊息的憑證集合中。

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

參數

certificate
X509Certificate2

要加入至集合的憑證。

例外狀況

憑證已存在於集合中。

適用於