ModelStateDictionary.CopyTo Metod

Definition

Kopierar elementen i ordlistan till en matris med början vid ett angivet index.

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)

Parametrar

array
KeyValuePair<String,ModelState>[]

Den endimensionella matris som är målet för de element som kopieras från ordlistan. Matrisen måste ha nollbaserad indexering.

arrayIndex
Int32

Det nollbaserade index array där kopieringen startar.

Implementeringar

Gäller för