ImmutableArray<T>.CopyTo 方法  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| CopyTo(Span<T>) | 将当前 ImmutableArray<T> 的元素复制到 Span<T>。 | 
| CopyTo(T[]) | 将此数组的内容复制到指定的数组。 | 
| CopyTo(T[], Int32) | 从指定目标索引处开始,将此数组的内容复制到指定的数组。 | 
| CopyTo(Int32, T[], Int32, Int32) | 将此数组中的指定项复制到指定数组中的指定起始索引处。 | 
CopyTo(Span<T>)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
将当前 ImmutableArray<T> 的元素复制到 Span<T>。
public:
 void CopyTo(Span<T> destination);public void CopyTo (Span<T> destination);member this.CopyTo : Span<'T> -> unitPublic Sub CopyTo (destination As Span(Of T))参数
- destination
- Span<T>
, Span<T> 它是从当前 ImmutableArray<T>复制的元素的目标。
适用于
CopyTo(T[])
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
将此数组的内容复制到指定的数组。
public:
 void CopyTo(cli::array <T> ^ destination);public void CopyTo (T[] destination);member this.CopyTo : 'T[] -> unitPublic Sub CopyTo (destination As T())参数
- destination
- T[]
要复制到的数组。
适用于
CopyTo(T[], Int32)
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
从指定目标索引处开始,将此数组的内容复制到指定的数组。
public:
 virtual void CopyTo(cli::array <T> ^ destination, int destinationIndex);public void CopyTo (T[] destination, int destinationIndex);abstract member CopyTo : 'T[] * int -> unit
override this.CopyTo : 'T[] * int -> unitPublic Sub CopyTo (destination As T(), destinationIndex As Integer)参数
- destination
- T[]
要复制到的数组。
- destinationIndex
- Int32
              array 中复制开始处的索引。
实现
适用于
CopyTo(Int32, T[], Int32, Int32)
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
- Source:
- ImmutableArray_1.Minimal.cs
将此数组中的指定项复制到指定数组中的指定起始索引处。
public:
 void CopyTo(int sourceIndex, cli::array <T> ^ destination, int destinationIndex, int length);public void CopyTo (int sourceIndex, T[] destination, int destinationIndex, int length);member this.CopyTo : int * 'T[] * int * int -> unitPublic Sub CopyTo (sourceIndex As Integer, destination As T(), destinationIndex As Integer, length As Integer)参数
- sourceIndex
- Int32
此数组中复制开始处的索引。
- destination
- T[]
要复制到的数组。
- destinationIndex
- Int32
              array 中复制开始处的索引。
- length
- Int32
要从此数组中复制的元素数。