ArcGIS Pro 2.7 API Reference Guide
GetItems Method (Item)

ArcGIS.Desktop.Core Namespace > Item Class : GetItems Method
Browses the contents of an item. Returns a snapshot collection of of the item's children. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public IEnumerable<Item> GetItems()
Public Function GetItems() As IEnumerable(Of Item)

Return Value

Returns an enumerable collection of items
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks

For example, returns a list of all the feature datasets, feature classes, tables and so on within a database. Or, returns a list of all the subfolders and other items within a folder.

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Item Class
Item Members