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