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

注解

此方法删除证书的第一个匹配项。

适用于