Dela via


DependencyCollection.CopyTo Method

Copies the collection objects to a one-dimensional array beginning at the index value specified.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub CopyTo ( _
    array As DependencyCollectionNode(), _
    arrayIndex As Integer _
)
'Usage
Dim instance As DependencyCollection
Dim array As DependencyCollectionNode()
Dim arrayIndex As Integer

instance.CopyTo(array, arrayIndex)
public void CopyTo(
    DependencyCollectionNode[] array,
    int arrayIndex
)
public:
virtual void CopyTo(
    array<DependencyCollectionNode^>^ array, 
    int arrayIndex
) sealed
abstract CopyTo : 
        array:DependencyCollectionNode[] * 
        arrayIndex:int -> unit 
override CopyTo : 
        array:DependencyCollectionNode[] * 
        arrayIndex:int -> unit 
public final function CopyTo(
    array : DependencyCollectionNode[], 
    arrayIndex : int
)

Parameters

  • arrayIndex
    Type: System.Int32
    An Int32 value that specifies the index position to start the copy.

Implements

ICollection<T>.CopyTo(array<T[], Int32)

Examples

Scripting