AccountPickerAndLink.OnInit Method

Raises the Init event.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

Me.OnInit(e)
protected override void OnInit(
    EventArgs e
)

Parameters

Remarks

Raising an event invokes the event handler through a delegate. The OnInit method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors When overriding OnInit in a derived class, be sure to call the base class's OnInit method so that registered delegates receive the event.

See Also

Reference

AccountPickerAndLink Class

AccountPickerAndLink Members

Microsoft.SharePoint.WebControls Namespace