Share via


StreamingKernelContentItemCollection.IndexOf(StreamingKernelContent) Method

Definition

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

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

Parameters

item
StreamingKernelContent

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