Compartilhar 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)
Available in Sandboxed Solutions: No

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