Compartilhar via


WebPartGallerySourceBase.AddItemToPage method (WebPartZoneBase, Int32, WebPart)

Adiciona o especificado WebPart para a página.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaração
Protected Overridable Sub AddItemToPage ( _
    zone As WebPartZoneBase, _
    zoneIndex As Integer, _
    webPart As WebPart _
)
'Uso
Dim zone As WebPartZoneBase
Dim zoneIndex As Integer
Dim webPart As WebPart

Me.AddItemToPage(zone, zoneIndex, _
    webPart)
protected virtual void AddItemToPage(
    WebPartZoneBase zone,
    int zoneIndex,
    WebPart webPart
)

Parâmetros

Comentários

Este método adiciona o WebPart para a página.

Ver também

Referência

WebPartGallerySourceBase class

WebPartGallerySourceBase members

AddItemToPage overload

Microsoft.SharePoint.WebPartPages namespace