次の方法で共有


SearchBox クラス (Microsoft.SharePoint.Portal.WebControls)

このクラスまたはメンバは、廃止されます。このクラスまたはメンバを使用する新しいアプリケーションをアップグレードまたは記述するときは、代わりに新しいクラスまたはメンバを使用してください。 Microsoft Office SharePoint Server 2007 でのエンタープライズ検索 には、代わりに Microsoft.SharePoint.PortalWebControls.SearchBoxEx を使用してください。Microsoft Office SharePoint Portal Server 2003 の検索ページに検索ボックス Web パーツを実装します。

名前空間: Microsoft.SharePoint.Portal.WebControls
アセンブリ: Microsoft.SharePoint.Portal (microsoft.sharepoint.portal.dll 内)

構文

'宣言
<XmlRootAttribute(Namespace:="urn:schemas-microsoft-com:sharepoint:portal:SearchBox")> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
Public Class SearchBox
    Inherits CacheableWebPart
    Implements IDesignTimeHtmlProvider
'使用
Dim instance As SearchBox
[XmlRootAttribute(Namespace="urn:schemas-microsoft-com:sharepoint:portal:SearchBox")] 
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
public class SearchBox : CacheableWebPart, IDesignTimeHtmlProvider

継承階層

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.Portal.WebControls.WebPartLoc
                 Microsoft.SharePoint.Portal.WebControls.CacheableWebPart
                  Microsoft.SharePoint.Portal.WebControls.SearchBox

スレッドの安全性

この型のパブリックで静的な (Visual Basic では Shared) すべてのメンバは、スレッド セーフです。インスタンス メンバは、スレッド セーフであるとは保証されません。

関連項目

参照

SearchBox メンバ
Microsoft.SharePoint.Portal.WebControls 名前空間