Freigeben über


ChatMessageContentItemCollection.IndexOf(KernelContent) Method

Definition

Searches for the specified content item and returns the index of the first occurrence.

public int IndexOf (Microsoft.SemanticKernel.KernelContent item);
abstract member IndexOf : Microsoft.SemanticKernel.KernelContent -> int
override this.IndexOf : Microsoft.SemanticKernel.KernelContent -> int
Public Function IndexOf (item As KernelContent) As Integer

Parameters

item
KernelContent

The content item to locate.

Returns

The index of the first found occurrence of the specified content item; -1 if the content item could not be found.

Implements

Exceptions

item is null.

Applies to