IVsFilterAddProjectItemDlg2.FilterListItemByCategory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.