Share via


SearchBox.OnInit Method (Object, EventArgs)

This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead. For Enterprise Search in Microsoft Office SharePoint Server 2007, use the SearchBoxEx instead. Overrides the Microsoft.SharePoint.WebPartPages.WebPart.OnInit method. The OnInit method raises the System.Web.UI.Control.Init event that occurs as this Web Part is instantiated.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
Protected Overrides Sub OnInit ( _
    sender As Object, _
    e As EventArgs _
)
'Usage
Dim sender As Object
Dim e As EventArgs

Me.OnInit(sender, e)
protected override void OnInit(
    Object sender,
    EventArgs e
)

Parameters

  • e
    Type: System.EventArgs
    A System.EventArgs object that contains the event data.

See Also

Reference

SearchBox Class

SearchBox Members

OnInit Overload

Microsoft.SharePoint.Portal.WebControls Namespace