Share via


WebPartGallerySource.AddItemToPage Method

When overridden in a derived class, adds the WebPartGalleryItem represented by the WebPart to the page.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public MustOverride Sub AddItemToPage ( _
    zone As WebPartZoneBase, _
    zoneIndex As Integer, _
    item As WebPartGalleryItem, _
    wpid As String _
)
'Usage
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
)

Parameters

Remarks

This method is an abstract method that must be implemented in the derived class.

See Also

Reference

WebPartGallerySource Class

WebPartGallerySource Members

Microsoft.SharePoint.WebPartPages Namespace