Condividi tramite


NormalizedSnapshotSpanCollection.CopyTo Method (Array, Int32)

Copies the snapshot spans in this collection to the specified array, starting at the specified index.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Dichiarazione
Public Sub CopyTo ( _
    array As Array, _
    index As Integer _
)
public void CopyTo(
    Array array,
    int index
)
public:
virtual void CopyTo(
    Array^ array, 
    int index
) sealed
abstract CopyTo : 
        array:Array * 
        index:int -> unit 
override CopyTo : 
        array:Array * 
        index:int -> unit 
public final function CopyTo(
    array : Array, 
    index : int
)

Parameters

  • index
    Type: System.Int32
    The location at which to start copying.

Implements

ICollection.CopyTo(Array, Int32)

Exceptions

Exception Condition
ArgumentNullException

array is nulla null reference (Nothing in Visual Basic).

ArgumentException

array is not one-dimensional.

ArgumentOutOfRangeException

index is negative, or greater than the length of the array, or the number of spans is greater than the length of the array less the index.

.NET Framework Security

See Also

Reference

NormalizedSnapshotSpanCollection Class

CopyTo Overload

Microsoft.VisualStudio.Text Namespace