共用方式為


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 中以零為起始的索引,即開始複製的位置。

實作

適用於