Partager via


ChatMessageContentItemCollection.Insert(Int32, KernelContent) Method

Definition

Inserts a content item into the collection at the specified index.

public void Insert (int index, Microsoft.SemanticKernel.KernelContent item);
abstract member Insert : int * Microsoft.SemanticKernel.KernelContent -> unit
override this.Insert : int * Microsoft.SemanticKernel.KernelContent -> unit
Public Sub Insert (index As Integer, item As KernelContent)

Parameters

index
Int32

The index at which the content item should be inserted.

item
KernelContent

The content item to insert.

Implements

Exceptions

item is null.

Applies to