Compartilhar via


WebPartGallerySource.AddItemToPage method

Quando substituído em uma classe derivada, adiciona WebPartGalleryItem representado pela WebPart para a página.

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

Syntax

'Declaração
Public MustOverride Sub AddItemToPage ( _
    zone As WebPartZoneBase, _
    zoneIndex As Integer, _
    item As WebPartGalleryItem, _
    wpid As String _
)
'Uso
Dim instance As WebPartGallerySource
Dim zone As WebPartZoneBase
Dim zoneIndex As Integer
Dim item As WebPartGalleryItem
Dim wpid As String

instance.AddItemToPage(zone, zoneIndex, _
    item, wpid)
public abstract void AddItemToPage(
    WebPartZoneBase zone,
    int zoneIndex,
    WebPartGalleryItem item,
    string wpid
)

Parâmetros

Comentários

Esse método é um método abstrato que deve ser implementado na classe derivada.

Ver também

Referência

WebPartGallerySource class

WebPartGallerySource members

Microsoft.SharePoint.WebPartPages namespace