ModelStateDictionary.CopyTo 方法

定义

从指定的数组索引开始,将字典中的元素复制到一个数组中。

public:
 virtual void CopyTo(cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Web::ModelBinding::ModelState ^>> ^ array, int arrayIndex);
public void CopyTo (System.Collections.Generic.KeyValuePair<string,System.Web.ModelBinding.ModelState>[] array, int arrayIndex);
abstract member CopyTo : System.Collections.Generic.KeyValuePair<string, System.Web.ModelBinding.ModelState>[] * int -> unit
override this.CopyTo : System.Collections.Generic.KeyValuePair<string, System.Web.ModelBinding.ModelState>[] * int -> unit
Public Sub CopyTo (array As KeyValuePair(Of String, ModelState)(), arrayIndex As Integer)

参数

array
KeyValuePair<String,ModelState>[]

作为从字典复制的元素的目标的一维数组。 该数组的索引必须从零开始。

arrayIndex
Int32

array 中从零开始的索引,将从此索引处开始进行复制。

实现

适用于