Share via


IVsFilterAddProjectItemDlg2.FilterListItemByCategory Method

Definition

Filters files by category.

public:
 int FilterListItemByCategory(Guid % rguidProjectItemTemplates, System::String ^ pszCategoryName, [Runtime::InteropServices::Out] int % pfFilter);
public int FilterListItemByCategory (ref Guid rguidProjectItemTemplates, string pszCategoryName, out int pfFilter);
abstract member FilterListItemByCategory : Guid * string * int -> int
Public Function FilterListItemByCategory (ByRef rguidProjectItemTemplates As Guid, pszCategoryName As String, ByRef pfFilter As Integer) As Integer

Parameters

rguidProjectItemTemplates
Guid

[in] GUID of the project supplying the item templates.

pszCategoryName
String

[in] Pointer to a null terminated string containing the category template name.

pfFilter
Int32

[out] Set to true to filter out the specified item. Set to false to display the item.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsFilterAddProjectItemDlg2::FilterListItemByCategory(  
   [in] REFGUID rguidProjectItemTemplates,  
   [in] LPCOLESTR pszCategoryName,  
   [out] BOOL *pfFilter  
);  

The environment passes in a project GUID and a category name. Return false to display items in the category and true to filter the category. You specify categories in your Template Directory Description (.Vsdir) Files.

Applies to