Partager via


SearchResults.GenerateHtmlOneRowForOneItem, méthode (Microsoft.SharePoint.Portal.WebControls)

Generates the HTML for one row for the specified DataRow in the search result set.

Espace de noms : Microsoft.SharePoint.Portal.WebControls
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
Protected Overrides Sub GenerateHtmlOneRowForOneItem ( _
    oneDataRow As DataRow, _
    sbRenderRowHtml As StringBuilder, _
    rowID As Integer, _
    strStyleClass As String, _
    iIndexOfItemInDataSet As Integer, _
    iIndexOfItemInGroup As Integer _
)
'Utilisation
Dim oneDataRow As DataRow
Dim sbRenderRowHtml As StringBuilder
Dim rowID As Integer
Dim strStyleClass As String
Dim iIndexOfItemInDataSet As Integer
Dim iIndexOfItemInGroup As Integer

Me.GenerateHtmlOneRowForOneItem(oneDataRow, sbRenderRowHtml, rowID, strStyleClass, iIndexOfItemInDataSet, iIndexOfItemInGroup)
protected override void GenerateHtmlOneRowForOneItem (
    DataRow oneDataRow,
    StringBuilder sbRenderRowHtml,
    int rowID,
    string strStyleClass,
    int iIndexOfItemInDataSet,
    int iIndexOfItemInGroup
)

Paramètres

  • oneDataRow
    DataRow that represents the item in the result set.
  • sbRenderRowHtml
    StringBuilder that contains the HTML for the specified row.
  • rowID
    Index of the row of data to generate. 0 indicates that the first HTML table row.
  • strStyleClass
    Style from the style sheet that applies to this row. This parameter is reserved for internal use.
  • iIndexOfItemInDataSet
    Index of this item in the result set to render. 0 represents the first item.
  • iIndexOfItemInGroup
    Index of this item in its group. This value is used to expand and collapse the result group in the browser.

Remarques

The GenerateHtmlOneRowForOneItem method generates different HTML if the DataRow contains information about a person. Otherwise is calls the GenerateHtmlOneRowForOneItem in the base class, QueryResultBase.

This method should not generate <TR> tags for the DataRow.

Voir aussi

Référence

SearchResults, classe
Membres SearchResults
Microsoft.SharePoint.Portal.WebControls, espace de noms