共用方式為


IReadOnlyCollection<T>.CopyTo 方法

Copies the elements of the collection to the specified array, starting at a particular array index.

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Sub CopyTo ( _
    array As T(), _
    arrayIndex As Integer _
)
'用途
Dim instance As IReadOnlyCollection 
Dim array As T()
Dim arrayIndex As Integer

instance.CopyTo(array, arrayIndex)
void CopyTo(
    T[] array,
    int arrayIndex
)
void CopyTo(
    array<T>^ array, 
    int arrayIndex
)
abstract CopyTo : 
        array:'T[] * 
        arrayIndex:int -> unit
function CopyTo(
    array : T[], 
    arrayIndex : int
)

參數

  • array
    型別:array<T[]
    The one-dimensional zero-based index array that is the destination of the elements to copy from the collection.
  • arrayIndex
    型別:System.Int32
    The position in the array at which the copying of the first element starts.

請參閱

參考

IReadOnlyCollection<T> 介面

Microsoft.SqlServer.Management.Sdk.Sfc 命名空間