Share via


SPAddReportPage.AddWebPart Method

This member is reserved for internal use and is not intended to be used directly from your code.

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

Syntax

'Declaration
Protected Function AddWebPart ( _
    dwpFileName As String, _
    currentSite As SPSite, _
    currentWPManager As SPLimitedWebPartManager, _
    zoneID As String _
) As WebPart
'Usage
Dim dwpFileName As String
Dim currentSite As SPSite
Dim currentWPManager As SPLimitedWebPartManager
Dim zoneID As String
Dim returnValue As WebPart

returnValue = Me.AddWebPart(dwpFileName, _
    currentSite, currentWPManager, zoneID)
protected WebPart AddWebPart(
    string dwpFileName,
    SPSite currentSite,
    SPLimitedWebPartManager currentWPManager,
    string zoneID
)

Parameters

Return Value

Type: System.Web.UI.WebControls.WebParts.WebPart

See Also

Reference

SPAddReportPage Class

SPAddReportPage Members

Microsoft.SharePoint.Portal.WebControls Namespace