Compartilhar via


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

Remarks

The override is called after a WebPart control has been added to a page.

See Also

Reference

SPWebPartManager Class

SPWebPartManager Members

Microsoft.SharePoint.WebPartPages Namespace