IVsFilterAddProjectItemDlg2.FilterTreeItemByLocalizedName 方法

定义

按本地化名称筛选树元素。

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

参数

rguidProjectItemTemplates
Guid

中提供项模板的项目的 GUID。

pszLocalizedName
String

中指向包含本地化名称的以 null 结尾的字符串的指针。

pfFilter
Int32

弄设置为 true 以筛选出指定的项。 设置为 false 可显示项。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

实现

注解

COM 签名

从 vsshell:

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

环境传入项目 GUID 和项名称。 返回 false 以显示项并 true 筛选项。

适用于