HashSet(Of T).CopyTo Method (T(), Int32)
.NET Framework (current version)
Copies the elements of a HashSet(Of T) object to an array, starting at the specified array index.
Assembly: System.Core (in System.Core.dll)
Parameters
- array
-
Type:
T()
The one-dimensional array that is the destination of the elements copied from the HashSet(Of T) object. The array must have zero-based indexing.
- arrayIndex
-
Type:
System.Int32
The zero-based index in array at which copying begins.
Implements
ICollection(Of T).CopyTo(T(), Int32)| Exception | Condition |
|---|---|
| ArgumentNullException | array is null. |
| ArgumentOutOfRangeException | arrayIndex is less than 0. |
| ArgumentException | arrayIndex is greater than the length of the destination array. |
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Show: