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
zone
Type: System.Web.UI.WebControls.WebParts.WebPartZoneBaseA zona à qual a WebPartGalleryItem será adicionado.
zoneIndex
Type: System.Int32A posição do índice de WebPart dentro da zona.
item
Type: Microsoft.SharePoint.WebPartPages.WebPartGalleryItemO item a ser adicionado à página.
wpid
Type: System.StringA identificação da WebPart.
Comentários
Essa substituição adiciona WebPartGalleryItem que é representado pela classe WebPart para a página.
Ver também
Referência
WebPartGallerySourceBase class