Freigeben über


SearchBoxScriptWebPart-Klasse

Eine ScriptWebPart , die ermöglicht dem Benutzer eine Suchabfrage eingeben, die dann an das Suchmodul gesendet wird ausgewertet werden soll.

Vererbungshierarchie

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.Office.Server.Search.WebControls.ScriptWebPart
                Microsoft.Office.Server.Search.WebControls.SearchBoxScriptWebPart
                  Microsoft.Office.Server.Search.WebControls.TogglableSearchBoxScriptWebPart

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

Syntax

'Declaration
<ScriptDescriptorComponentTypeAttribute("Srch.SearchBox")> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SearchBoxScriptWebPart _
    Inherits ScriptWebPart
'Usage
Dim instance As SearchBoxScriptWebPart
[ScriptDescriptorComponentTypeAttribute("Srch.SearchBox")]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SearchBoxScriptWebPart : ScriptWebPart

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Die Threadsicherheit von Instanzmembern ist nicht gewährleistet.

Siehe auch

Referenz

SearchBoxScriptWebPart-Member

Microsoft.Office.Server.Search.WebControls-Namespace