Share via


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)

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