IVsFilterAddProjectItemDlg.FilterTreeItemByLocalizedName Method

Filters tree elements by localized name.

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


Function FilterTreeItemByLocalizedName ( _
    ByRef rguidProjectItemTemplates As Guid, _
    pszLocalizedName As String, _
    <OutAttribute> ByRef pfFilter As Integer _
) As Integer
‘사용 방법
Dim instance As IVsFilterAddProjectItemDlg
Dim rguidProjectItemTemplates As Guid
Dim pszLocalizedName As String
Dim pfFilter As Integer
Dim returnValue As Integer

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


  • rguidProjectItemTemplates
    Type: System.Guid%
    [in] GUID of the project supplying the item templates.
  • pszLocalizedName
    Type: System.String
    [in] Pointer to a null terminated string containing the localized 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.


COM Signature

From vsshell.idl:

HRESULT IVsFilterAddProjectItemDlg::FilterTreeItemByLocalizedName(
   [in] REFGUID rguidProjectItemTemplates,
   [in] LPCOLESTR pszLocalizedName,
   [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


IVsFilterAddProjectItemDlg Interface

IVsFilterAddProjectItemDlg Members

Microsoft.VisualStudio.Shell.Interop Namespace