QuerySuggestionsDatasource class

Represents the data source control used to retrieve the query suggestions for the Query Suggestions Web Part.

Inheritance hierarchy

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

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 Class QuerySuggestionsDatasource _
    Inherits SearchResultsBaseDatasource
'Usage
Dim instance As QuerySuggestionsDatasource
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class QuerySuggestionsDatasource : SearchResultsBaseDatasource

Remarks

This is the data source that the QuerySuggestionsWebPart class uses to gather data. It is the intermediary between the consuming QuerySuggestionsWebPart object and the QuerySuggestionsDatasourceView object.

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

QuerySuggestionsDatasource members

Microsoft.Office.Server.Search.WebControls namespace