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

要添加到集合中的证书。

例外

集合中已存在该证书。

适用于