NormalizedSnapshotSpanCollection::CopyTo Method (array<SnapshotSpan>^, Int32)
Visual Studio 2015
Copies the collection to the specified array of snapshot spans at the specified location.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- array
-
Type:
array<Microsoft.VisualStudio.Text::SnapshotSpan>^
The array of snapshot spans.
- arrayIndex
-
Type:
System::Int32
The location to which to start copying the snapshot spans.
Implements
ICollection<T>::CopyTo(array<T>^, Int32)| Exception | Condition |
|---|---|
| ArgumentNullException | array is null. |
| ArgumentOutOfRangeException | arrayIndex is negative or greater than the array length, or the number of spans in the collection is greater than the length of the array minus the array index. |
Show: