NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ArrayList Constructor (ICollection)

Creates an ArrayList containing elements copied from the specified collection.

[Visual Basic]
Overloads Public Sub New( _
   ByVal c As ICollection _
)
[C#]
public ArrayList(
   ICollection c
);
[C++]
public: ArrayList(
   ICollection* c
);
[JScript]
public function ArrayList(
   c : ICollection
);

Parameters

c
The ICollection whose elements are copied into the new list.

Exceptions

Exception Type Condition
ArgumentNullException c is a null reference (in Visual Basic Nothing).

Remarks

When adding elements to the list and the number of elements exceeds the capacity, the capacity is doubled.

See Also

ArrayList Class | ArrayList Members | System.Collections Namespace | ArrayList Constructor Overload List | ICollection | Capacity