The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
CodeParameterDeclarationExpressionCollection::AddRange Method (array<CodeParameterDeclarationExpression^>^)
.NET Framework (current version)
Copies the elements of the specified array to the end of the collection.
Assembly: System (in System.dll)
Parameters
- value
-
Type:
array<System.CodeDom::CodeParameterDeclarationExpression^>^
An array of type CodeParameterDeclarationExpression containing the objects to add to the collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | value is null. |
The following example demonstrates how to use the AddRange(array<CodeParameterDeclarationExpression^>^) method overload to add the members of a CodeParameterDeclarationExpression array to a CodeParameterDeclarationExpressionCollection.
// Adds an array of CodeParameterDeclarationExpression objects // to the collection. array<CodeParameterDeclarationExpression^>^parameters = {gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" ),gcnew CodeParameterDeclarationExpression( bool::typeid,"testBoolArgument" )}; collection->AddRange( parameters ); // Adds a collection of CodeParameterDeclarationExpression objects // to the collection. CodeParameterDeclarationExpressionCollection^ parametersCollection = gcnew CodeParameterDeclarationExpressionCollection; parametersCollection->Add( gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" ) ); parametersCollection->Add( gcnew CodeParameterDeclarationExpression( bool::typeid,"testBoolArgument" ) ); collection->AddRange( parametersCollection );
.NET Framework
Available since 1.1
Available since 1.1
Show: