ModelStateDictionary.CopyTo Method

Definition

Copies the elements of the model-state dictionary to an array, starting at the specified index.

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)

Parameters

array
KeyValuePair<String,ModelState>[]

The one-dimensional Array instance where the elements will be copied to.

arrayIndex
Int32

The index in array at which copying begins.

Implements

Applies to