ArcGIS Pro 2.6 API Reference Guide
GetProjectItemContainer Method

ArcGIS.Desktop.Core Namespace > Project Class : GetProjectItemContainer Method
The key for the given container
Get the container with the given key. Container keys are not localized. A container is needed only in those situations where you want to select a specific item that occurs in more than one container.
Syntax
public Item GetProjectItemContainer( 
   string key
)
Public Function GetProjectItemContainer( _
   ByVal key As String _
) As Item

Parameters

key
The key for the given container

Return Value

The container Item or null
Remarks
Containers can vary from project to project depending on the content. Some containers, therefore, can be null. You can use the following keys to retrieve a container. Check for null.

Public containers (not including any 3rd party custom containers):

Display Name(English) Path or "Key" (Non-localizable) Item content
Databases GDB Database content
Folders FolderConnection Files and Folders
Layouts Layout Layouts
Locators LocatorsConnection Locators
Maps Map Maps
Raster Function Templates RasterFunctionTemplates Raster function templates
Reviewer Batch Jobs DataReviewerBatchJobs Reviewer batch jobs
Reviewer Results DataReviewerResources Reviewer results
Servers ServerConnection Server connections
Styles Style Styles
Tasks Task Tasks
Toolboxes GP Toolboxes
Workflows WorkflowConnection Workflows

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Project Class
Project Members