Click or drag to resize

X509ExtensionCollectionExtensionsAddRange Method

Adds a collection of X509Extension objects to existing collection.

Namespace:  SysadminsLV.PKI.Utils.CLRExtensions
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public static void AddRange(
	this X509ExtensionCollection extensions,
	IEnumerable<X509Extension> itemsToAdd
)

Parameters

extensions
Type: System.Security.Cryptography.X509CertificatesX509ExtensionCollection
Destination collection where items will be added.
itemsToAdd
Type: System.Collections.GenericIEnumerableX509Extension
A source collection of items to add to destination.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type X509ExtensionCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionextensions and/or itemsToAdd is null.
See Also