ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Core Namespace / CustomProjectItemBase Class / IncludeInPackages Method
Set to true if the item should be included

In This Topic
    IncludeInPackages Method
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also