次の方法で共有


ChatMessageContentItemCollection.Remove(KernelContent) Method

Definition

Removes the first occurrence of the specified content item from the collection.

public bool Remove (Microsoft.SemanticKernel.KernelContent item);
abstract member Remove : Microsoft.SemanticKernel.KernelContent -> bool
override this.Remove : Microsoft.SemanticKernel.KernelContent -> bool
Public Function Remove (item As KernelContent) As Boolean

Parameters

item
KernelContent

The content item to remove from the collection.

Returns

True if the item was successfully removed; false if it wasn't located in the collection.

Implements

Exceptions

item is null.

Applies to