Share via


ChatMessageContentItemCollection.Contains(KernelContent) Method

Definition

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.

Applies to