共用方式為


MessageQueryTable<TItem>.CopyTo 方法

定義

從指定的索引開始,將集合的項目複製到 Array

public:
 virtual void CopyTo(cli::array <System::Collections::Generic::KeyValuePair<System::ServiceModel::Dispatcher::MessageQuery ^, TItem>> ^ array, int arrayIndex);
public void CopyTo (System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery,TItem>[] array, int arrayIndex);
abstract member CopyTo : System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery, 'Item>[] * int -> unit
override this.CopyTo : System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery, 'Item>[] * int -> unit
Public Sub CopyTo (array As KeyValuePair(Of MessageQuery, TItem)(), arrayIndex As Integer)

參數

array
KeyValuePair<MessageQuery,TItem>[]

從集合複製項目之目的端一維陣列。 陣列必須有以零為起始的索引。

arrayIndex
Int32

陣列中以零為起始的索引,而且複製會從該位置開始。

實作

適用於