IVsFilterAddProjectItemDlg2 Interface

Sets filtering for the AddItem dialog box.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

public interface IVsFilterAddProjectItemDlg2 : IVsFilterAddProjectItemDlg

The IVsFilterAddProjectItemDlg2 type exposes the following members.

Public methodFilterListItemByCategoryFilters files by category.
Public methodFilterListItemByLocalizedNameFilters files by localized name.
Public methodFilterListItemByTemplateFileFilters files by actual template file name.
Public methodFilterTreeItemByCategoryFilters tree elements by category.
Public methodFilterTreeItemByLocalizedNameFilters tree elements by localized name.
Public methodFilterTreeItemByTemplateDirFilters tree elements by actual directory name.

This interface provides for filtering of elements in the left pane and project files in the right pane of the AddItem dialog. When a user invokes the AddItem dialog, the environment makes multiple calls to these methods. The first calls are to determine which tree elements you want to filter from the left pane. Subsequent calls allow you to filter specific files from the right pane.

Notes to Implementers

Implemented by a parent project to filter the project types displayed in the AddItem dialog. Only project items, such as files, specific to the specified filter are displayed.

Notes to Callers

Called by the environment when the AddItem dialog box for the child is opened.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft