HealthRecordItemCollection HealthRecordItemCollection HealthRecordItemCollection Class

Definition

Defines a group of results that gets returned from the HealthRecordSearcher.

[System.Diagnostics.DebuggerDisplay("Count = {Count}")]
[System.Diagnostics.DebuggerTypeProxy(typeof(Microsoft.Health.HealthRecordItemCollection/HealthRecordItemCollectionDebugView))]
public class HealthRecordItemCollection : System.Collections.Generic.ICollection<Microsoft.Health.HealthRecordItem>, System.Collections.Generic.IEnumerable<Microsoft.Health.HealthRecordItem>, System.Collections.Generic.IList<Microsoft.Health.HealthRecordItem>, System.Collections.IList
type HealthRecordItemCollection = class
    interface IList<HealthRecordItem>
    interface ICollection<HealthRecordItem>
    interface seq<HealthRecordItem>
    interface IEnumerable
    interface IList
    interface ICollection
Public Class HealthRecordItemCollection
Implements ICollection(Of HealthRecordItem), IEnumerable(Of HealthRecordItem), IList, IList(Of HealthRecordItem)
Inheritance
HealthRecordItemCollectionHealthRecordItemCollectionHealthRecordItemCollection
Attributes
Implements

Remarks

This collection is read-only.

Constructors

HealthRecordItemCollection(IEnumerable<HealthRecordItem>) HealthRecordItemCollection(IEnumerable<HealthRecordItem>) HealthRecordItemCollection(IEnumerable<HealthRecordItem>)

Create an instance of the HealthRecordItemCollection class with a specific set of items.

Properties

Count Count Count

Gets the number of items in the result group.

IsFixedSize IsFixedSize IsFixedSize

Gets a value indicating that the IList has a fixed size.

IsReadOnly IsReadOnly IsReadOnly

Gets a value indicating that this collection is read-only.

IsSynchronized IsSynchronized IsSynchronized

Gets a value indicating that this collection is thread-safe when the SyncRoot is used.

Item[Int32] Item[Int32] Item[Int32]

Retrieves the HealthRecordItem at the specified index.

Name Name Name

Gets the name of the filter group.

OrderByCulture OrderByCulture OrderByCulture

Gets the value indicating the culture that order by values were sorted in.

SyncRoot SyncRoot SyncRoot

Gets an object that can be used to synchronize access to the ICollection.

WasFiltered WasFiltered WasFiltered

Gets a value indicating whether the result set of health record items was filtered.

Methods

Add(HealthRecordItem) Add(HealthRecordItem) Add(HealthRecordItem)

This method is not used, because the collection is read-only and you cannot add items to it.

Clear() Clear() Clear()

This method is not used, because the result group is read-only, and you cannot clear items from it.

Contains(HealthRecordItem) Contains(HealthRecordItem) Contains(HealthRecordItem)

Gets a value indicating whether the collection contains the specified HealthRecordItem.

Contains(HealthRecordItemKey) Contains(HealthRecordItemKey) Contains(HealthRecordItemKey)

Gets a value indicating whether the collection contains a HealthRecordItem with the specified HealthRecordItemKey.

CopyTo(HealthRecordItem[], Int32) CopyTo(HealthRecordItem[], Int32) CopyTo(HealthRecordItem[], Int32)

This method is not used, because copying the result group might cause unexpected network access.

GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the collection.

GetRange(Int32, Int32) GetRange(Int32, Int32) GetRange(Int32, Int32)

Retrieves the HealthRecordItem from the result group in the specified range of indexes, including the specified indexes.

IndexOf(HealthRecordItem) IndexOf(HealthRecordItem) IndexOf(HealthRecordItem)

Determines the index of the specific HealthRecordItem in the list.

IndexOf(HealthRecordItemKey) IndexOf(HealthRecordItemKey) IndexOf(HealthRecordItemKey)

Determines the index of the specific item in the list using the unique health record item identifier.

Insert(Int32, HealthRecordItem) Insert(Int32, HealthRecordItem) Insert(Int32, HealthRecordItem)

This method is not used, because items cannot be inserted into a read-only collection.

Remove(HealthRecordItem) Remove(HealthRecordItem) Remove(HealthRecordItem)

This method is not used, because items cannot be removed from a read-only result group.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

This method is not used, because items cannot be removed from a read-only collection.

Sort(IComparer<HealthRecordItem>) Sort(IComparer<HealthRecordItem>) Sort(IComparer<HealthRecordItem>)

Sorts the HealthRecordItems in the collection using the specified comparer.

Sort(Comparison<HealthRecordItem>) Sort(Comparison<HealthRecordItem>) Sort(Comparison<HealthRecordItem>)

Sorts the HealthRecordItems in the collection using the specified comparison method.

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

This method is not used, because copying the result group might cause unexpected network access.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the collection.

IList.Add(Object) IList.Add(Object) IList.Add(Object)

This method is not used, because the collection is read-only you cannot add items to it.

IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

Gets a value indicating whether the collection contains the object having the specified value.

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

Determines the index of the specific item in the list.

IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

This method is not used, because items cannot be inserted into a read-only collection.

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

Retrieves the object at the specified index.

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

This method is not used, because items cannot be removed from a read-only collection.

Applies to