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
。