SearchResults.GenerateHtmlForItemIcon Method
Generates the HTML for the icon for the specified DataRow in the search result set.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Protected Overrides Function GenerateHtmlForItemIcon ( _
objectDataRow As DataRow, _
iIndexOfItemInDataSet As Integer, _
iIndexOfItemInGroup As Integer, _
strElemIDPrefix As String _
) As String
'Usage
Dim objectDataRow As DataRow
Dim iIndexOfItemInDataSet As Integer
Dim iIndexOfItemInGroup As Integer
Dim strElemIDPrefix As String
Dim returnValue As String
returnValue = Me.GenerateHtmlForItemIcon(objectDataRow, _
iIndexOfItemInDataSet, iIndexOfItemInGroup, _
strElemIDPrefix)
protected override string GenerateHtmlForItemIcon(
DataRow objectDataRow,
int iIndexOfItemInDataSet,
int iIndexOfItemInGroup,
string strElemIDPrefix
)
Parameters
objectDataRow
Type: System.Data.DataRowDataRow that represents a single item.
iIndexOfItemInDataSet
Type: System.Int32Index of row in the result DataSet.
iIndexOfItemInGroup
Type: System.Int32Index of an item in a group when grouping is enabled. This index is used to expand and collapse groups of results.
strElemIDPrefix
Type: System.StringThis element is used for HTML automation and is reserved for internal use only.
Return Value
Type: System.String
String that contains HTML for the icon to be displayed for each matching item.
Remarks
The GenerateHtmlForItemIcon method displays an edit icon for all items if current view is simple list view.