共用方式為


IVsFilterAddProjectItemDlg.FilterTreeItemByLocalizedName Method

Definition

Filters tree elements by localized name.

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

Parameters

rguidProjectItemTemplates
Guid

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

pszLocalizedName
String

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

Applies to