Windows apps
Collapse the table of content
Expand the table of content
Information
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.

CodeTypeReferenceCollection::AddRange Method (array<CodeTypeReference^>^)

 

Copies the elements of the specified CodeTypeReference array to the end of the collection.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public:
void AddRange(
	array<CodeTypeReference^>^ value
)

Parameters

value
Type: array<System.CodeDom::CodeTypeReference^>^

An array of type CodeTypeReference containing the objects to add to the collection.

Exception Condition
ArgumentNullException

value is null.

// Adds an array of CodeTypeReference objects to the collection.
array<CodeTypeReference^>^references = {gcnew CodeTypeReference( bool::typeid ),gcnew CodeTypeReference( bool::typeid )};
collection->AddRange( references );

// Adds a collection of CodeTypeReference objects to the collection.
CodeTypeReferenceCollection^ referencesCollection = gcnew CodeTypeReferenceCollection;
referencesCollection->Add( gcnew CodeTypeReference( bool::typeid ) );
referencesCollection->Add( gcnew CodeTypeReference( bool::typeid ) );
collection->AddRange( referencesCollection );

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft