IVsRegisterNewDialogFilters::RegisterAddNewItemDialogFilter Method (IVsFilterAddProjectItemDlg^, UInt32)
Visual Studio 2015
Registers a filter for the Add New Item dialog.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int RegisterAddNewItemDialogFilter( IVsFilterAddProjectItemDlg^ pFilter, [OutAttribute] unsigned int% pdwFilterCookie )
Parameters
- pFilter
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsFilterAddProjectItemDlg^
[in] Pointer to an IVsFilterAddProjectItemDlg interface representing the filter to register.
- pdwFilterCookie
-
Type:
System::UInt32
[out] Pointer to an integer containing a VSCOOKIE uniquely identifying the filter just registered. Needed for the UnregisterAddNewItemDialogFilter method.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: