AddRange Method (CommandList)
Adds the elements of an System.Collections.ICollection to the end of the System.Collections.ArrayList.
Syntax
public override void AddRange( ICollection c )
public: void AddRange( ICollection^ c ) override
Parameters
- c
- The System.Collections.ICollection whose elements should be added to the end of the System.Collections.ArrayList. The collection itself cannot be a null reference (Nothing in Visual Basic), but it can contain elements that are a null reference (Nothing in Visual Basic).
Exceptions
Exception | Description |
---|---|
System.ArgumentNullException | c is a null reference (Nothing in Visual Basic). |
System.NotSupportedException | The System.Collections.ArrayList is read-only.-or- The System.Collections.ArrayList has a fixed size. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also