共用方式為


SearchResults Members

Include Protected Members
Include Inherited Members

Implements the search results Web Part on the Microsoft Office SharePoint Portal Server 2003 search page.

The SearchResults type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property AdvancedPagingControlMode Gets or sets the paging control mode of the WebPart. (Inherited from DataResultBase.)
Public property AlternatingCssClass Gets or sets the name of a CSS class defining alternating row display characteristics. (Inherited from DataResultBase.)
Public property CollapseGroupString Gets or sets the string that will be displayed with the collapse results control. (Inherited from DataResultBase.)
Public property ColumnDisplayNames Gets or sets the column heading names. (Inherited from DataResultBase.)
Public property ColumnNumberForEachItem Gets or sets the number of columns to display in the first row for each item in the result set. (Inherited from DataResultBase.)
Public property ColumnURIs Gets or sets the Uniform Resource Identifiers (URIs) associated with the columns. This enables you to choose the property on which the column will sort. (Inherited from DataResultBase.)
Public property ColumnWidths Gets or sets the width of columns in the search results page. (Inherited from DataResultBase.)
Public property DataColumnURISchema (Inherited from DataResultBase.)
Public property DefaultGroupBy Gets or sets the default column name by which to group the results. (Inherited from DataResultBase.)
Protected property DefaultScopes This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from QueryResultBase.)
Public property DefaultSortBy Gets or sets the default column name by which to sort the results. (Inherited from DataResultBase.)
Public property EnableQueryLogging Gets or sets a value that enables query logging. (Inherited from DataResultBase.)
Public property EnableSmartGrouping Gets or sets a value that enables smart grouping on the result set. (Inherited from DataResultBase.)
Public property EnableSQLCommandLogging Gets or sets a value that enables SQL command logging. (Inherited from DataResultBase.)
Public property ExpandGroupString (Inherited from DataResultBase.)
Public property FixLayout Gets or sets a value that indicates direct control of the table style. (Inherited from DataResultBase.)
Public property GroupByList Gets or sets the list of properties to group by. (Inherited from DataResultBase.)
Public property IsItemIconClickable (Inherited from DataResultBase.)
Public property MaxGroupPreviewNum (Inherited from DataResultBase.)
Public property MaxMatchingItemsNumber Gets or sets the upper limit of the number of documents that are displayed in one result page. (Inherited from DataResultBase.)
Public property OpenNewWindowForMatchingItems (Inherited from DataResultBase.)
Protected property QueryTemplate The QueryTemplate property of the QueryResultBase class gets the query template used by Web Parts that derive from this class. (Inherited from QueryResultBase.)
Public property QueryTemplateFromPart The QueryTemplateFromPart property of the QueryResultBase class gets or sets the FROM clause of the query template used by Web Parts that derive from this class. (Inherited from QueryResultBase.)
Public property QueryTemplateOrderByPart The QueryTemplateOrderByPart property of the QueryResultBase class gets or sets the ORDER BY clause of the query template used by Web Parts that derive from this class. (Inherited from QueryResultBase.)
Public property QueryTemplateSelectPart The QueryTemplateSelectPart property of the QueryResultBase class gets or sets the SELECT clause of the query template used by Web Parts that derive from this class. (Inherited from QueryResultBase.)
Public property QueryTemplateWherePart The QueryTemplateWherePart property of the QueryResultBase class gets or sets the WHERE clause of the query template used by Web Parts that derive from this class. (Inherited from QueryResultBase.)
Public property ResultListID Gets or sets the identifier of the results Web Part. (Inherited from DataResultBase.)
Public property RowNumberForEachItem (Inherited from DataResultBase.)
Public property SearchResultDateTimeFormat Gets or sets the display format for the date and time.
Protected property SearchScopes This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from QueryResultBase.)
Public property ShowRankForEachItem (Inherited from DataResultBase.)
Protected property SiteName The SiteName property of the QueryResultBase class is reserved for internal use only. (Inherited from QueryResultBase.)
Public property SortByList Gets or sets the list of properties to sort on. (Inherited from DataResultBase.)
Public property SupportExpandCollapseAll (Inherited from DataResultBase.)
Public property SupportGroupBy (Inherited from DataResultBase.)
Public property SupportItemIcon (Inherited from DataResultBase.)
Public property SupportPaging (Inherited from DataResultBase.)
Public property SupportShowHideDetail (Inherited from DataResultBase.)
Public property SupportSortBy (Inherited from DataResultBase.)
Public property TextForNoResults (Inherited from DataResultBase.)
Public property UseAlternatingColors (Inherited from DataResultBase.)

Top

Methods

  Name Description
Protected method AcquireHugeStringBuilder This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from DataResultBase.)
Protected method AcquireStringBuilder This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from DataResultBase.)
Protected method CreateActionMenusTemplates Creates action menu templates to avoid creating separate menus for each results item. (Inherited from DataResultBase.)
Protected method CreateChildControls Creates the control tree for the result set. (Inherited from DataResultBase.)
Public method CreateCustomMenu This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from QueryResultBase.)
Protected method GenerateHtmlForItemIcon Generates the HTML for the icon for the specified DataRow in the search result set. (Overrides QueryResultBase.GenerateHtmlForItemIcon(DataRow, Int32, Int32, String).)
Protected method GenerateHtmlForRowColumn Generates the HTML that is displayed for a table cell in a table row for the specified DataRow in the search result set. This position in the rendered HTML results contains the path to the specified item. (Overrides QueryResultBase.GenerateHtmlForRowColumn(DataRow, StringBuilder, Int32).)
Protected method GenerateHtmlOneRowForOneItem Generates the HTML for one row for the specified DataRow in the search result set. (Overrides QueryResultBase.GenerateHtmlOneRowForOneItem(DataRow, StringBuilder, Int32, String, Int32, Int32).)
Protected method GenerateMenuButtonHtmlForItem The GenerateMenuButtonHtmlForItem method of the QueryResultBase class generates HTML for the menu button. (Inherited from QueryResultBase.)
Protected method GenerateQueryString Generates the SQL Full-Text Search Syntax query that produces the current result set. (Overrides QueryResultBase.GenerateQueryString(String, ArrayList, String, String).)
Protected method GetCurrentRow Override the GetCurrentRow method of the QueryResultBase class to get the current row in the search result set. (Inherited from QueryResultBase.)
Protected method GetItemUrl The GetItemUrl method of the QueryResultBase class gets the URL of the specifed DataRow that represents one item in the result set. (Inherited from QueryResultBase.)
Protected method GetQueryResults Override the GetQueryResults method of the QueryResultBase class if your derived class needs to support asynchronous queries. (Inherited from QueryResultBase.)
Protected method GetSearchDisplayTitle (Inherited from QueryResultBase.)
Protected method GetTotalMatchingItemNum (Inherited from DataResultBase.)
Protected method GetTotalResultRowNumber The GetTotalResultRowNumber method of the QueryResultBase class gets the total number of rows in the result set. (Inherited from QueryResultBase.)
Protected method IsBestBet The IsBestBet method of the QueryResultBase class gets a flag that indicates whether the specified search result is a Best Bet. (Inherited from QueryResultBase.)
Protected method IssueQuery The IssueQuery method of the QueryResultBase class executes the specified query. Returns a unique identifier for the query in the case of an asychronous query. Returns a DataSet with the query results if the query is executed without errors; otherwise, it returns null. (Inherited from QueryResultBase.)
Protected method OnInit Overrides the Microsoft.SharePoint.WebPartPages.WebPart.OnInit method. The OnInit method raises the System.Web.UI.Control.Init event that occurs as this Web Part is instantiated. (Overrides QueryResultBase.OnInit(Object, EventArgs).)
Protected method OnLoad (Inherited from DataResultBase.)
Protected method OnPreRender Overrides the Microsoft.SharePoint.WebPartPages.WebPart.OnPreRender method. The 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. (Overrides QueryResultBase.OnPreRender(Object, EventArgs).)
Protected method ReleaseHugeStringBuilder (Inherited from DataResultBase.)
Protected method ReleaseStringBuilder (Inherited from DataResultBase.)
Protected method RenderOneColumnTitle (Inherited from DataResultBase.)
Protected method RenderWebPart The RenderWebPart method of the QueryResultBase class overrides the Microsoft.SharePoint.WebPartPages.WebPart.RenderWebPart method. This method renders the HTML for the body of this Web Part to the client. (Inherited from QueryResultBase.)

Top

Fields

  Name Description
Protected field _GroupColumns This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from DataResultBase.)
Protected field IsAdminContextOnly (Inherited from DataResultBase.)
Protected field m_bAllSearchSourcesSelected The m_bAllSearchSourcesSelected field of the QueryResultBase class is reserved for internal use only. (Inherited from QueryResultBase.)
Protected field m_strContextSensitiveScopeRealName (Inherited from QueryResultBase.)
Protected field m_strKeywords The m_strKeywords field of the QueryResultBase class contains keywords used in the query string. (Inherited from QueryResultBase.)
Protected field m_strQueryIssued This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from QueryResultBase.)
Protected field OutOfContext (Inherited from DataResultBase.)
Protected field UseHugeStringBuilderBuffer (Inherited from DataResultBase.)

Top

See Also

Reference

SearchResults Class

Microsoft.SharePoint.Portal.WebControls Namespace