共用方式為


X509Certificate2Collection.Remove(X509Certificate2) 方法

定義

移除 X509Certificate2Collection 物件中的第一個憑證。

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

參數

certificate
X509Certificate2

要從 X509Certificate2 物件移除的 X509Certificate2Collection 物件。

例外狀況

certificatenull

備註

此方法會移除第一次出現的憑證。

適用於