Share via


HealthStateChunkList<T> Class

Definition

Represents a chunk list that contains a list of health state chunk items.

public abstract class HealthStateChunkList<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>
type HealthStateChunkList<'T> = class
    interface IList<'T>
    interface ICollection<'T>
    interface seq<'T>
    interface IEnumerable
Public MustInherit Class HealthStateChunkList(Of T)
Implements ICollection(Of T), IEnumerable(Of T), IList(Of T)

Type Parameters

T

The type of the items in the list.

Inheritance
HealthStateChunkList<T>
Derived
Implements

Remarks

The chunk list is obtained from queries that can potentially have more results than can fit a message. Only the entries that fit are returned. The list included the total number of items that should have been returned if there was enough space.

Constructors

HealthStateChunkList<T>()

Instantiates an empty HealthStateChunkList<T> class.

HealthStateChunkList<T>(IList<T>)

Instantiates a HealthStateChunkList<T> class with the items of another list.

Properties

Count

Gets or sets the number of items in the list.

IsReadOnly

Gets or sets a flag that indicated whether the list can be modified.

Item[Int32]

Gets the item at the specified index.

TotalCount

Gets the total number of items to be returned in one or more messages.

Methods

Add(T)

Adds an item to this list.

Clear()

Removes all items from this list.

Contains(T)

Specifies whether the list contains a specific item.

CopyTo(T[], Int32)

Copies items from this list to the specified array starting at the specified index.

GetEnumerator()

Gets an enumerator to items in this list.

IndexOf(T)

Gets the index in this list for the specified item.

Insert(Int32, T)

Inserts an item into this list at the specified index.

Remove(T)

Removes the specified item from this list.

RemoveAt(Int32)

Removes the item at the specified index from this list.

ToString()

Returns a string representation of the chunk list.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Gets an enumerator to items in this list.

Extension Methods

ToCommaSeparatedString<T>(IEnumerable<T>)

Converts the elements of a collection to strings and concatenates them into a comma-separated list, or returns null for null or empty collections.

ToArray<T>(HealthStateChunkList<T>)

Returns an array with the items in the chunk list.

Applies to