Partager via


ChatMessageContentItemCollection Class

Definition

Contains collection of chat message content items of type KernelContent.

public class ChatMessageContentItemCollection : System.Collections.Generic.ICollection<Microsoft.SemanticKernel.KernelContent>, System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.KernelContent>, System.Collections.Generic.IList<Microsoft.SemanticKernel.KernelContent>, System.Collections.Generic.IReadOnlyCollection<Microsoft.SemanticKernel.KernelContent>, System.Collections.Generic.IReadOnlyList<Microsoft.SemanticKernel.KernelContent>
type ChatMessageContentItemCollection = class
    interface IList<KernelContent>
    interface ICollection<KernelContent>
    interface seq<KernelContent>
    interface IEnumerable
    interface IReadOnlyList<KernelContent>
    interface IReadOnlyCollection<KernelContent>
Public Class ChatMessageContentItemCollection
Implements ICollection(Of KernelContent), IEnumerable(Of KernelContent), IList(Of KernelContent), IReadOnlyCollection(Of KernelContent), IReadOnlyList(Of KernelContent)
Inheritance
ChatMessageContentItemCollection
Implements

Constructors

ChatMessageContentItemCollection()

Initializes a new instance of the ChatMessageContentItemCollection class.

Properties

Count

Gets the number of content items in the collection.

Item[Int32]

Gets or sets the content item at the specified index in the collection.

Methods

Add(KernelContent)

Adds a content item to the collection.

Clear()

Removes all content items from the collection.

Contains(KernelContent)

Determines whether a content item is in the collection.

CopyTo(KernelContent[], Int32)

Copies all of the content items in the collection to an array, starting at the specified destination array index.

IndexOf(KernelContent)

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

Insert(Int32, KernelContent)

Inserts a content item into the collection at the specified index.

Remove(KernelContent)

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

RemoveAt(Int32)

Removes the content item at the specified index from the collection.

Explicit Interface Implementations

ICollection<KernelContent>.IsReadOnly
IEnumerable.GetEnumerator()
IEnumerable<KernelContent>.GetEnumerator()

Applies to