共用方式為


IVsFilterAddProjectItemDlg2.FilterTreeItemByTemplateDir Method

Definition

Filters tree elements by actual directory name.

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

Parameters

rguidProjectItemTemplates
Guid

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

pszTemplateDir
String

[in] Pointer to a null terminated string containing the template directory 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.

Implements

Remarks

COM Signature

From vsshell.idl:

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

The environment passes in a project GUID and a directory name. Return false to display items in the directory and true to filter them.

Applies to