ModelStateDictionary.CopyTo Method

Definition

Copies the elements of the dictionary to an array, starting at a specified index.

C#
public void CopyTo(System.Collections.Generic.KeyValuePair<string,System.Web.ModelBinding.ModelState>[] array, int arrayIndex);

Parameters

array
KeyValuePair<String,ModelState>[]

The one-dimensional array that is the destination of the elements copied from the dictionary. The array must have zero-based indexing.

arrayIndex
Int32

The zero-based index in array at which copying starts.

Implements

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1