Class SearchResultsInfoCollection
Represents a collection of SearchResultsInfo objects.
Inheritance
Namespace: DotNetNuke.Services.Search
Assembly: DotNetNuke.dll
Syntax
public class SearchResultsInfoCollection : CollectionBase
Constructors
| Improve this Doc View SourceSearchResultsInfoCollection()
Initializes a new instance of the SearchResultsInfoCollection class.
Declaration
public SearchResultsInfoCollection()
SearchResultsInfoCollection(ArrayList)
Initializes a new instance of the SearchResultsInfoCollection class containing the specified array of SearchResultsInfo objects.
Declaration
public SearchResultsInfoCollection(ArrayList value)
Parameters
Type | Name | Description |
---|---|---|
ArrayList | value | An array of SearchResultsInfo objects with which to initialize the collection. |
SearchResultsInfoCollection(SearchResultsInfo[])
Initializes a new instance of the SearchResultsInfoCollection class containing the specified array of SearchResultsInfo objects.
Declaration
public SearchResultsInfoCollection(SearchResultsInfo[] value)
Parameters
Type | Name | Description |
---|---|---|
SearchResultsInfo[] | value | An array of SearchResultsInfo objects with which to initialize the collection. |
SearchResultsInfoCollection(SearchResultsInfoCollection)
Initializes a new instance of the SearchResultsInfoCollection class containing the elements of the specified source collection.
Declaration
public SearchResultsInfoCollection(SearchResultsInfoCollection value)
Parameters
Type | Name | Description |
---|---|---|
SearchResultsInfoCollection | value | A SearchResultsInfoCollection with which to initialize the collection. |
Properties
| Improve this Doc View SourceItem[Int32]
Gets the SearchResultsInfoCollection at the specified index in the collection.
In VB.Net, this property is the indexer for the SearchResultsInfoCollection class.
Declaration
public SearchResultsInfo this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
SearchResultsInfo |
Methods
| Improve this Doc View SourceAdd(SearchResultsInfo)
Add an element of the specified SearchResultsInfo to the end of the collection.
Declaration
public int Add(SearchResultsInfo value)
Parameters
Type | Name | Description |
---|---|---|
SearchResultsInfo | value | An object of type SearchResultsInfo to add to the collection. |
Returns
Type | Description |
---|---|
System.Int32 | The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection. |
AddRange(ArrayList)
Copies the elements of the specified
Declaration
public void AddRange(ArrayList value)
Parameters
Type | Name | Description |
---|---|---|
ArrayList | value | An |
AddRange(SearchResultsInfo[])
Copies the elements of the specified SearchResultsInfo array to the end of the collection.
Declaration
public void AddRange(SearchResultsInfo[] value)
Parameters
Type | Name | Description |
---|---|---|
SearchResultsInfo[] | value | An array of type SearchResultsInfo containing the objects to add to the collection. |
AddRange(SearchResultsInfoCollection)
Adds the contents of another SearchResultsInfoCollection to the end of the collection.
Declaration
public void AddRange(SearchResultsInfoCollection value)
Parameters
Type | Name | Description |
---|---|---|
SearchResultsInfoCollection | value | A SearchResultsInfoCollection containing the objects to add to the collection. |
Contains(SearchResultsInfo)
Gets a value indicating whether the collection contains the specified SearchResultsInfoCollection.
Declaration
public bool Contains(SearchResultsInfo value)
Parameters
Type | Name | Description |
---|---|---|
SearchResultsInfo | value | The SearchResultsInfoCollection to search for in the collection. |
Returns
Type | Description |
---|---|
System.Boolean | true if the collection contains the specified object; otherwise, false. |
CopyTo(SearchResultsInfo[], Int32)
Copies the collection objects to a one-dimensional
Declaration
public void CopyTo(SearchResultsInfo[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
SearchResultsInfo[] | array | The one-dimensional |
System.Int32 | index | The index of the array at which to begin inserting. |
IndexOf(SearchResultsInfo)
Gets the index in the collection of the specified SearchResultsInfoCollection, if it exists in the collection.
Declaration
public int IndexOf(SearchResultsInfo value)
Parameters
Type | Name | Description |
---|---|---|
SearchResultsInfo | value | The SearchResultsInfoCollection to locate in the collection. |
Returns
Type | Description |
---|---|
System.Int32 | The index in the collection of the specified object, if found; otherwise, -1. |
Insert(Int32, SearchResultsInfo)
Add an element of the specified SearchResultsInfo to the collection at the designated index.
Declaration
public void Insert(int index, SearchResultsInfo value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | An |
SearchResultsInfo | value | An object of type SearchResultsInfo to add to the collection. |
Remove(SearchResultsInfo)
Remove the specified object of type SearchResultsInfo from the collection.
Declaration
public void Remove(SearchResultsInfo value)
Parameters
Type | Name | Description |
---|---|---|
SearchResultsInfo | value | An object of type SearchResultsInfo to remove to the collection. |
ToArray()
Creates a one-dimensional
Declaration
public SearchResultsInfo[] ToArray()
Returns
Type | Description |
---|---|
SearchResultsInfo[] | Array of type SearchResultsInfo. |