다음을 통해 공유


SPLimitedWebPartManager.AddWebPart Method

Adds a dynamic Web Part to the WebPartPage.

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

Syntax

'Declaration
Public Sub AddWebPart ( _
    webPart As WebPart, _
    zoneId As String, _
    zoneIndex As Integer _
)
'Usage
Dim instance As SPLimitedWebPartManager
Dim webPart As WebPart
Dim zoneId As String
Dim zoneIndex As Integer

instance.AddWebPart(webPart, zoneId, zoneIndex)
public void AddWebPart(
    WebPart webPart,
    string zoneId,
    int zoneIndex
)

Parameters

See Also

Reference

SPLimitedWebPartManager Class

SPLimitedWebPartManager Members

Microsoft.SharePoint.WebPartPages Namespace