Compartir a través de


IVsFilterAddProjectItemDlg2.FilterListItemByTemplateFile Method (Guid%, String, Int32%)

Filters files by actual template file name.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaración
Function FilterListItemByTemplateFile ( _
    ByRef rguidProjectItemTemplates As Guid, _
    pszTemplateFile As String, _
    <OutAttribute> ByRef pfFilter As Integer _
) As Integer
'Uso
Dim instance As IVsFilterAddProjectItemDlg2
Dim rguidProjectItemTemplates As Guid
Dim pszTemplateFile As String
Dim pfFilter As Integer
Dim returnValue As Integer

returnValue = instance.FilterListItemByTemplateFile(rguidProjectItemTemplates, _
    pszTemplateFile, pfFilter)
int FilterListItemByTemplateFile(
    ref Guid rguidProjectItemTemplates,
    string pszTemplateFile,
    out int pfFilter
)
int FilterListItemByTemplateFile(
    [InAttribute] Guid% rguidProjectItemTemplates, 
    [InAttribute] String^ pszTemplateFile, 
    [OutAttribute] int% pfFilter
)
abstract FilterListItemByTemplateFile : 
        rguidProjectItemTemplates:Guid byref * 
        pszTemplateFile:string * 
        pfFilter:int byref -> int 
function FilterListItemByTemplateFile(
    rguidProjectItemTemplates : Guid, 
    pszTemplateFile : String, 
    pfFilter : int
) : int

Parameters

  • rguidProjectItemTemplates
    Type: System.Guid%
    [in] GUID of the project supplying the item templates.
  • pszTemplateFile
    Type: System.String
    [in] Pointer to a null terminated string containing the template file name.
  • pfFilter
    Type: System.Int32%
    [out] Set to trueto 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.FilterListItemByTemplateFile(Guid%, String, Int32%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsFilterAddProjectItemDlg2::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.

.NET Framework Security

See Also

Reference

IVsFilterAddProjectItemDlg2 Interface

IVsFilterAddProjectItemDlg2 Members

FilterListItemByTemplateFile Overload

Microsoft.VisualStudio.Shell.Interop Namespace