共用方式為


SearchResultsBaseDatasource Class

Provides the base class for the data source control used to retrieve search results for the SharePoint Enterprise Search results Web Parts.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.DataSourceControl
      Microsoft.Office.Server.Search.WebControls.SearchResultsBaseDatasource
        Microsoft.Office.Server.Search.WebControls.CoreResultsDatasource
        Microsoft.Office.Server.Search.WebControls.FederatedResultsDatasource
        Microsoft.Office.Server.Search.WebControls.QuerySuggestionsDatasource
        Microsoft.Office.Server.Search.WebControls.TopFederatedResultsDatasource

Namespace:  Microsoft.Office.Server.Search.WebControls
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class SearchResultsBaseDatasource _
    Inherits DataSourceControl
'Usage
Dim instance As SearchResultsBaseDatasource
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class SearchResultsBaseDatasource : DataSourceControl

Remarks

This is the data source that the SearchResultsBaseWebPart object uses to gather data. It is the intermediary between the consuming SearchResultsBaseWebPart and the SearchResultsBaseDataSourceView object that gathers the data. It contains similar properties to SearchResultsBaseWebPart and passes these configuration values to SearchResultsBaseDataSourceView.

Thread Safety

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

See Also

Reference

SearchResultsBaseDatasource Members

Microsoft.Office.Server.Search.WebControls Namespace

SearchResultsBaseWebPart

SearchResultsBaseToolPart

SearchResultsBaseDataSourceView