ChatMessageContentItemCollection.Contains(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.
Determines whether a content item is in the collection.
public bool Contains (Microsoft.SemanticKernel.KernelContent item);
abstract member Contains : Microsoft.SemanticKernel.KernelContent -> bool
override this.Contains : Microsoft.SemanticKernel.KernelContent -> bool
Public Function Contains (item As KernelContent) As Boolean
Parameters
- item
- KernelContent
The content item to locate.
Returns
True if the content item is found in the collection; otherwise, false.
Implements
Exceptions
item
is null.