CodeDirectiveCollection::AddRange Method (CodeDirectiveCollection^)
.NET Framework (current version)
Adds the contents of the specified CodeDirectiveCollection object to the end of the collection.
Assembly: System (in System.dll)
Parameters
- value
-
Type:
System.CodeDom::CodeDirectiveCollection^
A CodeDirectiveCollection object containing the CodeDirective objects to add to the collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | value is null. |
The following code example shows the use of the AddRange(CodeDirectiveCollection^) method to add the contents of a CodeDirectiveCollection object to the collection. This example is part of a larger example provided for the CodeDirectiveCollection class.
.NET Framework
Available since 2.0
Available since 2.0
Show: