Partager via


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)

Syntax

'Declaration
<GuidAttribute("61116CFF-5319-440A-81CE-5D9F54A610DE")> _
<InterfaceTypeAttribute()> _
Public Interface IVsFilterAddProjectItemDlg2 _
    Inherits IVsFilterAddProjectItemDlg
[GuidAttribute("61116CFF-5319-440A-81CE-5D9F54A610DE")]
[InterfaceTypeAttribute()]
public interface IVsFilterAddProjectItemDlg2 : IVsFilterAddProjectItemDlg
[GuidAttribute(L"61116CFF-5319-440A-81CE-5D9F54A610DE")]
[InterfaceTypeAttribute()]
public interface class IVsFilterAddProjectItemDlg2 : IVsFilterAddProjectItemDlg
[<GuidAttribute("61116CFF-5319-440A-81CE-5D9F54A610DE")>]
[<InterfaceTypeAttribute()>]
type IVsFilterAddProjectItemDlg2 =  
    interface 
        interface IVsFilterAddProjectItemDlg 
    end
public interface IVsFilterAddProjectItemDlg2 extends IVsFilterAddProjectItemDlg

The IVsFilterAddProjectItemDlg2 type exposes the following members.

Methods

  Name Description
Public method FilterListItemByCategory Filters files by category.
Public method FilterListItemByLocalizedName Filters files by localized name.
Public method FilterListItemByTemplateFile Filters files by actual template file name.
Public method FilterTreeItemByCategory Filters tree elements by category.
Public method FilterTreeItemByLocalizedName Filters tree elements by localized name.
Public method FilterTreeItemByTemplateDir Filters tree elements by actual directory name.

Top

Remarks

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.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace