共用方式為


HttpRequestOptions.ICollection<KeyValuePair<String,Object>>.CopyTo 方法

定義

從特定的 ICollection<T> 索引開始,將 Array 的項目複製到 Array

 virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.CopyTo(cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ array, int arrayIndex) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>::CopyTo;
void ICollection<KeyValuePair<string,object>>.CopyTo (System.Collections.Generic.KeyValuePair<string,object>[] array, int arrayIndex);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.CopyTo : System.Collections.Generic.KeyValuePair<string, obj>[] * int -> unit
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.CopyTo : System.Collections.Generic.KeyValuePair<string, obj>[] * int -> unit
Sub CopyTo (array As KeyValuePair(Of String, Object)(), arrayIndex As Integer) Implements ICollection(Of KeyValuePair(Of String, Object)).CopyTo

參數

array
KeyValuePair<String,Object>[]

一維 Array,是從 ICollection<T> 複製過來之項目的目的端。 Array 必須有以零為起始的索引。

arrayIndex
Int32

array 中以零起始的索引,即開始複製的位置。

實作

備註

這個成員是明確介面成員實作, 只有在 HttpRequestOptions 執行個體轉換成 ICollection<T> 介面時,才能使用這個成員。

適用於