Partager via


ChatMessageContentItemCollection.CopyTo(KernelContent[], Int32) 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.KernelContent[] array, int arrayIndex);
abstract member CopyTo : Microsoft.SemanticKernel.KernelContent[] * int -> unit
override this.CopyTo : Microsoft.SemanticKernel.KernelContent[] * int -> unit
Public Sub CopyTo (array As KernelContent(), arrayIndex As Integer)

Parameters

array
KernelContent[]

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