Share via


WebPartGallerySourceBase.GetItems method

Returns the array of WebPartGalleryItem items that are managed by this WebPartGallerySource.

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

Syntax

'Declaration
Public Overrides Function GetItems As WebPartGalleryItem()
'Usage
Dim instance As WebPartGallerySourceBase
Dim returnValue As WebPartGalleryItem()

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

Return value

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

Remarks

This override returns the array of items that are managed by this WebPartGallerySource and adds each item to a cache used for faster future retrievals of the WebPartGalleryItem items.

See also

Reference

WebPartGallerySourceBase class

WebPartGallerySourceBase members

Microsoft.SharePoint.WebPartPages namespace