QueryResultBase.GenerateHtmlForItemIcon, méthode (Microsoft.SharePoint.Portal.WebControls)
The GenerateHtmlForItemIcon method of the QueryResultBase class generates the HTML for the icon 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 Overridable Function GenerateHtmlForItemIcon ( _
objectDataRow As DataRow, _
iIndexOfItemInDataSet As Integer, _
iIndexOfItemInGroup As Integer, _
strElemIDPrefix As String _
) As String
'Utilisation
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 virtual string GenerateHtmlForItemIcon (
DataRow objectDataRow,
int iIndexOfItemInDataSet,
int iIndexOfItemInGroup,
string strElemIDPrefix
)
Paramètres
- objectDataRow
DataRow that represents a single item.
- iIndexOfItemInDataSet
Index of row in the result DataSet.
- iIndexOfItemInGroup
Index of an item in a group when grouping is enabled. This index is used to expand and collapse groups of results.
- strElemIDPrefix
This element is used for HTML automation and is reserved for internal use only.
Valeur de retour
String that contains HTML for the icon to be displayed for each matching item.
Remarques
The GenerateHtmlForItemIcon method displays an edit icon for all items if current view is simple list view.
Voir aussi
Référence
QueryResultBase, classe
Membres QueryResultBase
Microsoft.SharePoint.Portal.WebControls, espace de noms