Partager via


FederatedResultsWebPart Class

Specifies the user interface (UI) control that displays the results for a search query to a federated location.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.Panel
        System.Web.UI.WebControls.WebParts.Part
          System.Web.UI.WebControls.WebParts.WebPart
            Microsoft.SharePoint.WebPartPages.WebPart
              Microsoft.SharePoint.WebPartPages.BaseXsltDataWebPart
                Microsoft.SharePoint.WebPartPages.DataFormWebPart
                  Microsoft.Office.Server.Search.WebControls.SearchResultsBaseWebPart
                    Microsoft.Office.Server.Search.WebControls.FederatedResultsWebPart

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

Syntax

'Declaration
<ComVisibleAttribute(False)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class FederatedResultsWebPart _
    Inherits SearchResultsBaseWebPart _
    Implements IDesignerEventAccessor
'Usage
Dim instance As FederatedResultsWebPart
[ComVisibleAttribute(false)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class FederatedResultsWebPart : SearchResultsBaseWebPart, 
    IDesignerEventAccessor

Remarks

SharePoint Server search includes the following Web Parts for displaying search results from federated locations:

  • Federated Results Web Part
    Displays the results from a specified federated location. You can specify only one location in a Federated Results Web Part. Use the FederatedResultsWebPart class to create a custom version of this Web Part.

  • Top Federated Results Web Part
    Displays the results from the first federated location to return search results. You can configure multiple locations for the Web Part, in priority order. Use the TopFederatedResultsWebPart class to create a custom version of this Web Part.

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

FederatedResultsWebPart Members

Microsoft.Office.Server.Search.WebControls Namespace

FederatedResultsDataSource

FederatedResultsDatasourceView

TopFederatedResultsWebPart

SearchResultsBaseWebPart