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
)
<ExtensionAttribute>
Public Shared Sub AddRange (
extensions As X509ExtensionCollection,
itemsToAdd As IEnumerable(Of X509Extension)
)
public:
[ExtensionAttribute]
static void AddRange(
X509ExtensionCollection^ extensions,
IEnumerable<X509Extension^>^ itemsToAdd
)
[<ExtensionAttribute>]
static member AddRange :
extensions : X509ExtensionCollection *
itemsToAdd : IEnumerable<X509Extension> -> unit
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 Exception | Condition |
---|
ArgumentNullException | extensions and/or itemsToAdd is null.
|
See Also