다음을 통해 공유


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

  • iIndexOfItemInDataSet
    Type: System.Int32

    Index of row in the result DataSet.

  • iIndexOfItemInGroup
    Type: System.Int32

    Index of an item in a group when grouping is enabled. This index is used to expand and collapse groups of results.

  • strElemIDPrefix
    Type: System.String

    This 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.

See Also

Reference

SearchResults Class

SearchResults Members

Microsoft.SharePoint.Portal.WebControls Namespace