共用方式為


ModelStateDictionary.CopyTo 方法

定義

從指定的索引開始,將模型狀態字典的項目複製到陣列。

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

參數

array
KeyValuePair<String,ModelState>[]

將複製元素的一維 Array 實例。

arrayIndex
Int32

array 中開始複製處的索引。

實作

適用於