Class UnifiedSearchHitCollection
Represents a collection of UnifiedSearchHit classes.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Web.Hosting
Assembly: EPiServer.dll
Version: 8.11.0Syntax
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. |