ArcGIS Pro 2.8 API Reference Guide
IncludeInPackages Method

ArcGIS.Desktop.Core Namespace > CustomProjectItemBase Class : IncludeInPackages Method
Set to true if the item should be included
Use to include the custom item within packages and project templates
Syntax
public void IncludeInPackages( 
   bool includeInPackages
)
Public Sub IncludeInPackages( _
   ByVal includeInPackages As Boolean _
) 

Parameters

includeInPackages
Set to true if the item should be included
Remarks
This method should be called by the item container's CustomProjectItemContainer<T>.CreateItemPrototype method when the item is being created. By default items are not included (in packages, etc) so calling this method on a newly created item with "false" is redundant.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

CustomProjectItemBase Class
CustomProjectItemBase Members