Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Handles the WebPartAdding 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 OnWebPartAdding ( _
eventArgs As WebPartAddingEventArgs _
)
'Usage
Dim eventArgs As WebPartAddingEventArgs
Me.OnWebPartAdding(eventArgs)
protected override void OnWebPartAdding(
WebPartAddingEventArgs eventArgs
)
Parameters
eventArgs
Type: System.Web.UI.WebControls.WebParts.WebPartAddingEventArgsThe data for the event.
Remarks
This override is called when the process of adding a control to a zone has begun. If the adding process is successful, this event is followed by the WebPartAdded event.