SPWebPartManager.OnWebPartAdded Method
Handles the WebPartAdded event.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online
Syntax
'Declaration
Protected Overrides Sub OnWebPartAdded ( _
eventArgs As WebPartEventArgs _
)
'Usage
Dim eventArgs As WebPartEventArgs
Me.OnWebPartAdded(eventArgs)
protected override void OnWebPartAdded(
WebPartEventArgs eventArgs
)
Parameters
eventArgs
Type: System.Web.UI.WebControls.WebParts.WebPartEventArgsThe data for the event.
Remarks
The override is called after a WebPart control has been added to a page.