Compartilhar via


WebPartGallerySourceBase.AddItemToPage method (WebPartZoneBase, Int32, WebPartGalleryItem, String)

Adiciona o WebPartGalleryItem que é representado pela classe WebPart .

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

Syntax

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

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

Parâmetros

Comentários

Essa substituição adiciona WebPartGalleryItem que é representado pela classe WebPart para a página.

Ver também

Referência

WebPartGallerySourceBase class

WebPartGallerySourceBase members

AddItemToPage overload

Microsoft.SharePoint.WebPartPages namespace