ImmutableArray<T>.Builder.CopyTo 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| CopyTo(Span<T>) |
將當前內容複製到指定的 Span<T>。 |
| CopyTo(T[]) |
將這個陣列的內容複製到指定的陣列。 |
| CopyTo(T[], Int32) |
將目前的內容複製到指定的陣列。 |
| CopyTo(Int32, T[], Int32, Int32) |
將這個陣列的內容複製到指定的陣列。 |
CopyTo(Span<T>)
將當前內容複製到指定的 Span<T>。
public:
void CopyTo(Span<T> destination);
public void CopyTo(Span<T> destination);
member this.CopyTo : Span<'T> -> unit
Public Sub CopyTo (destination As Span(Of T))
參數
適用於
CopyTo(T[])
將這個陣列的內容複製到指定的陣列。
public:
void CopyTo(cli::array <T> ^ destination);
public void CopyTo(T[] destination);
member this.CopyTo : 'T[] -> unit
Public Sub CopyTo (destination As T())
參數
- destination
- T[]
要複製到的陣列。
適用於
CopyTo(T[], Int32)
將目前的內容複製到指定的陣列。
public:
virtual void CopyTo(cli::array <T> ^ array, int index);
public void CopyTo(T[] array, int index);
abstract member CopyTo : 'T[] * int -> unit
override this.CopyTo : 'T[] * int -> unit
Public Sub CopyTo (array As T(), index As Integer)
參數
- array
- T[]
要複製到的陣列。
- index
- Int32
索引用來啟動複製操作。
實作
適用於
CopyTo(Int32, T[], Int32, Int32)
將這個陣列的內容複製到指定的陣列。
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 -> unit
Public Sub CopyTo (sourceIndex As Integer, destination As T(), destinationIndex As Integer, length As Integer)
參數
- sourceIndex
- Int32
這是第一個要複製元素的索引。
- destination
- T[]
要複製到的陣列。
- destinationIndex
- Int32
第一個複製元素寫入目標陣列的索引。
- length
- Int32
要複製的項目數目。