Export (0) Print
Expand All

X509Certificate2Collection.AddRange Method (X509Certificate2[])

Adds multiple X509Certificate2 objects in an array to the X509Certificate2Collection object.

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

public void AddRange(
	X509Certificate2[] certificates
)

Parameters

certificates
Type: System.Security.Cryptography.X509Certificates.X509Certificate2[]

An array of X509Certificate2 objects.

ExceptionCondition
ArgumentNullException

certificates is null.

Use this method if you have an array of X509Certificate2 objects to add to an 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft