Share via


SearchResults Class

The SearchResults class implements the search results Web Part on the Microsoft Office SharePoint Portal Server 2003 search page.

System.Object

   Microsoft.SharePoint.Portal.WebControls.QueryResultBase

      Microsoft.SharePoint.Portal.WebControls.SearchResults

Public Constructors

The following table shows the SearchResults class constructors and provides a brief description.

Name Description
SearchResults Initializes a new instance of the SearchResults class.

Public Methods

The following table shows the SearchResults class methods and provides a brief description of each.

Name Description
GenerateHtmlForItemIcon(System.Data.DataRow, Int32, Int32, String) Generates the HTML that displays the icon for the specified DataRow object in the search result set.
GenerateHtmlForRowColumn(System.Data.DataRow, System.Text.StringBuilder, Int32) Generates the HTML for the specified column of data for the specified DataRow object in the search result set.
GenerateHtmlOneRowForOneItem(System.Data.DataRow, System.Text.StringBuilder, Int32, String, Int32, Int32) Generates the HTML for the specified column and row of data for the specified DataRow object in the search result set.
GenerateQueryString(String, System.Collections.ArrayList, String, String) Generates the SQL Full-Text Search Syntax query that produces the current result set.
OnInit(object, System.EventArgs) Overrides the Microsoft.SharePoint.WebPartPages.WebPart.OnInit method. Raises the System.Web.UI.Control.Init event that occurs as this Web Part is instantiated.
OnPreRender(object, System.EventArgs) Overrides the Microsoft.SharePoint.WebPartPages.WebPart.OnPreRender method. Raises the System.Web.UI.Control.PreRender event that occurs immediately before the Web Part is rendered to its containing Web Part Page.

Public Properties

The following table shows the properties of the SearchResults class, the data type of each property, and a brief description of each.

Name Data type Description
SearchResultDateTimeFormat Microsoft.SharePoint.Portal.WebControls.QueryResultsDateTimeFormatType Gets or sets the display format for the date and time.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Remarks

Use this Web Part to display search results on a custom Web Part Page in SharePoint Portal Server.

Requirements

Namespace: Microsoft.SharePoint.Portal.WebControls

Platforms: Microsoft Windows Server 2003

Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Security: Code Access Security