IVsRegisterNewDialogFilters.RegisterAddNewItemDialogFilter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a filter for the AddNewItem dialog.
public:
int RegisterAddNewItemDialogFilter(Microsoft::VisualStudio::Shell::Interop::IVsFilterAddProjectItemDlg ^ pFilter, [Runtime::InteropServices::Out] System::UInt32 % pdwFilterCookie);
int RegisterAddNewItemDialogFilter(Microsoft::VisualStudio::Shell::Interop::IVsFilterAddProjectItemDlg const & pFilter, [Runtime::InteropServices::Out] unsigned int & pdwFilterCookie);
public int RegisterAddNewItemDialogFilter (Microsoft.VisualStudio.Shell.Interop.IVsFilterAddProjectItemDlg pFilter, out uint pdwFilterCookie);
abstract member RegisterAddNewItemDialogFilter : Microsoft.VisualStudio.Shell.Interop.IVsFilterAddProjectItemDlg * uint32 -> int
Public Function RegisterAddNewItemDialogFilter (pFilter As IVsFilterAddProjectItemDlg, ByRef pdwFilterCookie As UInteger) As Integer
Parameters
- pFilter
- IVsFilterAddProjectItemDlg
[in] Pointer to an IVsFilterAddProjectItemDlg interface representing the filter to register.
- pdwFilterCookie
- UInt32
[out] Pointer to an integer containing a VSCOOKIE uniquely identifying the filter just registered. Needed for the UnregisterAddNewItemDialogFilter(UInt32) method.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.