IVsFilterAddProjectItemDlg2::FilterListItemByLocalizedName Method (Guid, String^, Int32)

 

Filters files by localized name.

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

int FilterListItemByLocalizedName(
	[InAttribute] Guid% rguidProjectItemTemplates,
	String^ pszLocalizedName,
	[OutAttribute] int% pfFilter
)

Parameters

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 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.

From vsshell.idl:

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

Return to top
Show: