SearchDocument.ICollection<KeyValuePair<String,Object>>.CopyTo(KeyValuePair<String,Object>[], Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies the elements of the System.Collections.Generic.ICollection`1 to an System.Array, starting at a particular System.Array index.
void ICollection<KeyValuePair<string,object>>.CopyTo (System.Collections.Generic.KeyValuePair<string,object>[] array, int arrayIndex);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.CopyTo : System.Collections.Generic.KeyValuePair<string, obj>[] * int -> unit
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.CopyTo : System.Collections.Generic.KeyValuePair<string, obj>[] * int -> unit
Sub CopyTo (array As KeyValuePair(Of String, Object)(), arrayIndex As Integer) Implements ICollection(Of KeyValuePair(Of String, Object)).CopyTo
Parameters
- array
- System.Collections.Generic.KeyValuePair<System.String,System.Object>[]
- arrayIndex
- System.Int32
Implements
System.Collections.Generic.ICollection`1.CopyTo(`0[],System.Int32)
Exceptions
System.ArgumentNullException
array
is null
.
System.ArgumentOutOfRangeException
arrayIndex
is less than 0.
System.ArgumentException
The number of elements in the source System.Collections.Generic.ICollection`1 is greater than the available space from arrayIndex
to the end of the destination array
.