X509Certificate2Collection.Remove Method (X509Certificate2)

 

Removes the first occurrence of a certificate from the X509Certificate2Collection object.

Namespace:   System.Security.Cryptography.X509Certificates
Assembly:  System (in System.dll)

public void Remove(
	X509Certificate2 certificate
)

Parameters

certificate
Type: System.Security.Cryptography.X509Certificates.X509Certificate2

The X509Certificate2 object to be removed from the X509Certificate2Collection object.

Exception Condition
ArgumentNullException

certificate is null.

This method removes the first occurrence of a certificate.

.NET Framework
Available since 2.0
Return to top
Show: