X509Certificate2Collection.RemoveRange Method (X509Certificate2Collection)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes multiple X509Certificate2 objects in an X509Certificate2Collection object from another X509Certificate2Collection object.

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

public void RemoveRange(
	X509Certificate2Collection certificates
)

Exception Condition
ArgumentNullException

certificates is null.

Use this method if you have certificates in an X509Certificate2Collection object that you want to remove from another X509Certificate2Collection object. The AddRange and RemoveRange methods process requests transactionally, so that if a single add or remove fails, the entire operation is aborted.

.NET Framework
Available since 2.0
Return to top
Show: