IVsFilterAddProjectItemDlg2.FilterTreeItemByTemplateDir Method (Guid%, String, Int32%)
Filters tree elements by actual directory name.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function FilterTreeItemByTemplateDir ( _
ByRef rguidProjectItemTemplates As Guid, _
pszTemplateDir As String, _
<OutAttribute> ByRef pfFilter As Integer _
) As Integer
'Usage
Dim instance As IVsFilterAddProjectItemDlg2
Dim rguidProjectItemTemplates As Guid
Dim pszTemplateDir As String
Dim pfFilter As Integer
Dim returnValue As Integer
returnValue = instance.FilterTreeItemByTemplateDir(rguidProjectItemTemplates, _
pszTemplateDir, pfFilter)
int FilterTreeItemByTemplateDir(
ref Guid rguidProjectItemTemplates,
string pszTemplateDir,
out int pfFilter
)
int FilterTreeItemByTemplateDir(
[InAttribute] Guid% rguidProjectItemTemplates,
[InAttribute] String^ pszTemplateDir,
[OutAttribute] int% pfFilter
)
abstract FilterTreeItemByTemplateDir :
rguidProjectItemTemplates:Guid byref *
pszTemplateDir:string *
pfFilter:int byref -> int
function FilterTreeItemByTemplateDir(
rguidProjectItemTemplates : Guid,
pszTemplateDir : String,
pfFilter : int
) : int
Parameters
- rguidProjectItemTemplates
Type: System.Guid%
[in] GUID of the project supplying the item templates.
- pszTemplateDir
Type: System.String
[in] Pointer to a null terminated string containing the template directory name.
- pfFilter
Type: System.Int32%
[out] Set to true to filter out the specified item. Set to false to display the item.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsFilterAddProjectItemDlg.FilterTreeItemByTemplateDir(Guid%, String, Int32%)
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsFilterAddProjectItemDlg2 Interface
IVsFilterAddProjectItemDlg2 Members