Share via


StreamingKernelContentItemCollection.CopyTo Method

Definition

Copies all of the content items in the collection to an array, starting at the specified destination array index.

public void CopyTo (Microsoft.SemanticKernel.StreamingKernelContent[] array, int arrayIndex);
abstract member CopyTo : Microsoft.SemanticKernel.StreamingKernelContent[] * int -> unit
override this.CopyTo : Microsoft.SemanticKernel.StreamingKernelContent[] * int -> unit
Public Sub CopyTo (array As StreamingKernelContent(), arrayIndex As Integer)

Parameters

array
StreamingKernelContent[]

The destination array into which the content items should be copied.

arrayIndex
Int32

The zero-based index into array at which copying should begin.

Implements

Exceptions

array is null.

The number of content items in the collection is greater than the available space from arrayIndex to the end of array.

arrayIndex is less than 0.

Applies to