다음을 통해 공유


CopyTo 메서드

Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.

네임스페이스:  Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
어셈블리:  Microsoft.SqlServer.Exec80PackageTask(Microsoft.SqlServer.Exec80PackageTask.dll)

구문

‘선언
Public Overridable Sub CopyTo ( _
    array As Array, _
    index As Integer _
)
‘사용 방법
Dim instance As VariablesCollection
Dim array As Array
Dim index As Integer

instance.CopyTo(array, index)
public virtual void CopyTo(
    Array array,
    int index
)
public:
virtual void CopyTo(
    Array^ array, 
    int index
)
abstract CopyTo : 
        array:Array * 
        index:int -> unit 
override CopyTo : 
        array:Array * 
        index:int -> unit 
public function CopyTo(
    array : Array, 
    index : int
)

매개 변수

  • array
    유형: System. . :: . .Array
    The one-dimensional Array that is the destination of the elements copied from the collection. The Array must have zero-based indexing.

구현

ICollection. . :: . .CopyTo(Array, Int32)