Class UnifiedSearchHitCollection

Represents a collection of UnifiedSearchHit classes.

Inheritance
System.Object
System.Collections.CollectionBase
UnifiedSearchHitCollection
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Collections.CollectionBase.Clear()
System.Collections.CollectionBase.RemoveAt(System.Int32)
System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.CollectionBase.GetEnumerator()
System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)
System.Collections.CollectionBase.OnClear()
System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
System.Collections.CollectionBase.OnValidate(System.Object)
System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)
System.Collections.CollectionBase.OnInsertComplete(System.Int32, System.Object)
System.Collections.CollectionBase.OnClearComplete()
System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)
System.Collections.CollectionBase.InnerList
System.Collections.CollectionBase.List
System.Collections.CollectionBase.Capacity
System.Collections.CollectionBase.Count
System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Hosting
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class UnifiedSearchHitCollection : CollectionBase, IList, ICollection, IEnumerable

Constructors

UnifiedSearchHitCollection()

Declaration
public UnifiedSearchHitCollection()

Properties

Item[Int32]

Gets or sets the UnifiedSearchHit associated with the specified index.

Declaration
public UnifiedSearchHit this[int index] { get; set; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
UnifiedSearchHit

Methods

Add(UnifiedSearchHit)

Adds a UnifiedSearchHit to the end of the collection.

Declaration
public void Add(UnifiedSearchHit hit)
Parameters
Type Name Description
UnifiedSearchHit hit

The UnifiedSearchHit to be added to the end of the collection.

AddRange(UnifiedSearchHitCollection)

Adds a collection of objects to the end of the collection.

Declaration
public void AddRange(UnifiedSearchHitCollection hits)
Parameters
Type Name Description
UnifiedSearchHitCollection hits

The UnifiedSearchHitCollection to be added to the end of the collection.

Contains(UnifiedSearchHit)

Determines whether the collection contains a specific element.

Declaration
public bool Contains(UnifiedSearchHit hit)
Parameters
Type Name Description
UnifiedSearchHit hit

The UnifiedSearchHit to locate in the CollectionBase.

Returns
Type Description
System.Boolean

True if the collection contains the specified value; otherwise, false.

CopyTo(UnifiedSearchHit[], Int32)

Copies the entire collection to a one-dimensional array, starting at the specified index of the target array.

Declaration
public void CopyTo(UnifiedSearchHit[] hits, int index)
Parameters
Type Name Description
UnifiedSearchHit[] hits

The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.

System.Int32 index

The zero-based index in array at which copying begins.

IndexOf(UnifiedSearchHit)

Searches for the specified UnifiedSearchHit and returns the zero-based index of the first occurrence within the entire collection.

Declaration
public int IndexOf(UnifiedSearchHit hit)
Parameters
Type Name Description
UnifiedSearchHit hit

The UnifiedSearchHit to locate in the CollectionBase.

Returns
Type Description
System.Int32

The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1.

Insert(Int32, UnifiedSearchHit)

Inserts an element into the collection at the specified index.

Declaration
public void Insert(int index, UnifiedSearchHit hit)
Parameters
Type Name Description
System.Int32 index

The zero-based index at which value should be inserted.

UnifiedSearchHit hit

The UnifiedSearchHit to insert.

Remove(UnifiedSearchHit)

Removes the first occurrence of a specific UnifiedSearchHit from the collection.

Declaration
public void Remove(UnifiedSearchHit hit)
Parameters
Type Name Description
UnifiedSearchHit hit

The UnifiedSearchHit to remove from the collection.

Implements

System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable

Extension Methods