SPLimitedWebPartManager.AddWebPart method
Adiciona uma Web Part de dinâmico para a página de Web Parts.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
Public Sub AddWebPart ( _
webPart As WebPart, _
zoneId As String, _
zoneIndex As Integer _
)
'Uso
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
)
Parâmetros
- webPart
Type: System.Web.UI.WebControls.WebParts.WebPart
- zoneId
Type: System.String
- zoneIndex
Type: System.Int32