StreamingKernelContentItemCollection.IndexOf(StreamingKernelContent) 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.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
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.