: QueryResultBase.GenerateHtmlForItemIcon (Método) (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.
Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)
Sintaxis
'Declaración
Protected Overridable Function GenerateHtmlForItemIcon ( _
objectDataRow As DataRow, _
iIndexOfItemInDataSet As Integer, _
iIndexOfItemInGroup As Integer, _
strElemIDPrefix As String _
) As String
'Uso
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
)
Parámetros
- 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.
Valor devuelto
String that contains HTML for the icon to be displayed for each matching item.
Comentarios
The GenerateHtmlForItemIcon method displays an edit icon for all items if current view is simple list view.
Vea también
Referencia
QueryResultBase (Clase)
QueryResultBase (Miembros)
Microsoft.SharePoint.Portal.WebControls (Espacio de nombres)