KeyInfoX509Data.AddCertificate(X509Certificate) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将指定的 X.509v3 证书添加到 KeyInfoX509Data。
public:
void AddCertificate(System::Security::Cryptography::X509Certificates::X509Certificate ^ certificate);
public void AddCertificate (System.Security.Cryptography.X509Certificates.X509Certificate certificate);
member this.AddCertificate : System.Security.Cryptography.X509Certificates.X509Certificate -> unit
Public Sub AddCertificate (certificate As X509Certificate)
参数
- certificate
- X509Certificate
要添加到 X509Certificate 对象中的 KeyInfoX509Data 对象。
例外
certificate
参数为 null
。