ChatMessageContentItemCollection.IndexOf(KernelContent) 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.
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.