WebPartGallerySource.GetItems Method

When overridden in a derived class, returns the WebPartGalleryItem objects that can be added to the WebPartAdder.

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

Syntax

'Declaration
Public MustOverride Function GetItems As WebPartGalleryItem()
'Usage
Dim instance As WebPartGallerySource
Dim returnValue As WebPartGalleryItem()

returnValue = instance.GetItems()
public abstract WebPartGalleryItem[] GetItems()

Return Value

Type: []
An array of WebPartGalleryItem objects that contains the items.

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