ReadOnlyList<T>.CopyTo 方法

Copies the elements of the list to an array, starting at a particular array index.

命名空间:  Microsoft.SqlServer.Management.Sdk.Sfc
程序集:  Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

语法

声明
Public Sub CopyTo ( _
    array As T(), _
    arrayIndex As Integer _
)
用法
Dim instance As ReadOnlyList 
Dim array As T()
Dim arrayIndex As Integer

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

参数

  • array
    类型:array<T[]
    The one-dimensional array that is the destination of the elements copied from a list.
  • arrayIndex
    类型:System.Int32
    The zero-based index in an array at which copying begins.

实现

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

请参阅

参考

ReadOnlyList<T> 结构

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