共用方式為


KeyInfoX509Data.AddCertificate(X509Certificate) 方法

定義

將指定的 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

適用於