IVsFilterAddProjectItemDlg.FilterListItemByTemplateFile 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 actual template file name.
public:
int FilterListItemByTemplateFile(Guid % rguidProjectItemTemplates, System::String ^ pszTemplateFile, [Runtime::InteropServices::Out] int % pfFilter);
public int FilterListItemByTemplateFile (ref Guid rguidProjectItemTemplates, string pszTemplateFile, out int pfFilter);
abstract member FilterListItemByTemplateFile : Guid * string * int -> int
Public Function FilterListItemByTemplateFile (ByRef rguidProjectItemTemplates As Guid, pszTemplateFile As String, ByRef pfFilter As Integer) As Integer
Parameters
- rguidProjectItemTemplates
- Guid
[in] GUID of the project supplying the item templates.
- pszTemplateFile
- String
[in] Pointer to a null terminated string containing the template file 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 IVsFilterAddProjectItemDlg::FilterListItemByTemplateFile(
[in] REFGUID rguidProjectItemTemplates,
[in] LPCOLESTR pszTemplateFile,
[out] BOOL *pfFilter
);
The environment passes in a project GUID and an item name. Return false
to display the item and true
to filter the item.